diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-admin/includes/class-wp-posts-list-table.php --- a/wp/wp-admin/includes/class-wp-posts-list-table.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-admin/includes/class-wp-posts-list-table.php Fri Sep 05 18:52:52 2025 +0200 @@ -723,7 +723,7 @@ * * @since 2.5.0 * - * @param string[] $post_columns An associative array of column headings. + * @param string[] $posts_columns An associative array of column headings. */ $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns ); } else { @@ -733,8 +733,8 @@ * * @since 1.5.0 * - * @param string[] $post_columns An associative array of column headings. - * @param string $post_type The post type slug. + * @param string[] $posts_columns An associative array of column headings. + * @param string $post_type The post type slug. */ $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type ); } @@ -751,7 +751,7 @@ * * @since 3.0.0 * - * @param string[] $post_columns An associative array of column headings. + * @param string[] $posts_columns An associative array of column headings. */ return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns ); } @@ -790,8 +790,13 @@ } /** + * Generates the list table rows. + * + * @since 3.1.0 + * * @global WP_Query $wp_query WordPress Query object. - * @global int $per_page + * @global int $per_page + * * @param array $posts * @param int $level */ @@ -1272,15 +1277,22 @@ * Handles the post author column output. * * @since 4.3.0 + * @since 6.8.0 Added fallback text when author's name is unknown. * * @param WP_Post $post The current WP_Post object. */ public function column_author( $post ) { - $args = array( - 'post_type' => $post->post_type, - 'author' => get_the_author_meta( 'ID' ), - ); - echo $this->get_edit_link( $args, get_the_author() ); + $author = get_the_author(); + + if ( ! empty( $author ) ) { + $args = array( + 'post_type' => $post->post_type, + 'author' => get_the_author_meta( 'ID' ), + ); + echo $this->get_edit_link( $args, esc_html( $author ) ); + } else { + echo '' . __( '(no author)' ) . ''; + } } /** @@ -1837,6 +1849,7 @@ if ( $bulk ) { $dropdown_args['show_option_no_change'] = __( '— No Change —' ); + $dropdown_args['id'] = 'bulk_edit_post_parent'; } /**