- Timestamp:
- 03/17/2025 06:52:12 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r58745 r60032 504 504 * 505 505 * @since 4.3.0 506 * @since 6.8.0 Added fallback text when author's name is unknown. 506 507 * 507 508 * @param WP_Post $post The current WP_Post object. 508 509 */ 509 510 public function column_author( $post ) { 510 printf( 511 '<a href="%s">%s</a>', 512 esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ), 513 get_the_author() 514 ); 511 $author = get_the_author(); 512 513 if ( ! empty( $author ) ) { 514 printf( 515 '<a href="%s">%s</a>', 516 esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ), 517 esc_html( $author ) 518 ); 519 } else { 520 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . __( '(no author)' ) . '</span>'; 521 } 515 522 } 516 523
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)