Ticket #52314: 52314-3.diff
File 52314-3.diff, 792 bytes (added by , 4 years ago) |
---|
-
src/wp-admin/admin-header.php
57 57 $admin_title = sprintf( __( 'Recovery Mode — %s' ), $admin_title ); 58 58 } 59 59 60 if ( 'post' === $current_screen->base ) { 61 $post_title = get_the_title(); 62 if ( __( 'Untitled' ) === $post_title ) { 63 /* translators: Editor admin screen title. %s: Post type name. */ 64 $admin_title = sprintf( __( 'Add %s' ), ucwords( get_post_type() ) ); 65 } else { 66 /* translators: Editor admin screen title. %s: Post title. */ 67 $admin_title = sprintf( __( 'Edit “%s”' ), $post_title ); 68 } 69 } 70 60 71 /** 61 72 * Filters the title tag content for an admin page. 62 73 *