Changeset 51969
- Timestamp:
- 11/01/2021 10:31:56 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-header.php
r51837 r51969 23 23 * @global int $total_update_count 24 24 * @global string $parent_file 25 * @global string $typenow 25 26 */ 26 27 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, 27 $update_title, $total_update_count, $parent_file ;28 $update_title, $total_update_count, $parent_file, $typenow; 28 29 29 30 // Catch plugins that include admin-header.php before admin.php completes. … … 56 57 /* translators: %s: Admin screen title. */ 57 58 $admin_title = sprintf( __( 'Recovery Mode — %s' ), $admin_title ); 59 } 60 61 if ( 'post' === $current_screen->base && 'add' !== $current_screen->action ) { 62 $post_title = get_the_title(); 63 if ( ! empty( $post_title ) ) { 64 $obj = get_post_type_object( $typenow ); 65 /* translators: Editor admin screen title. 1: "Edit item" text for the post type, 2: Post title. */ 66 $admin_title = sprintf( __( '%1$s “%2$s”' ), $obj->labels->edit_item, $post_title ); 67 } 58 68 } 59 69
Note: See TracChangeset
for help on using the changeset viewer.