Ticket #39599: 39599.patch
File 39599.patch, 3.5 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/template.php
1572 1572 function _draft_or_post_title( $post = 0 ) { 1573 1573 $title = get_the_title( $post ); 1574 1574 if ( empty( $title ) ) 1575 $title = __( ' (no title)' );1575 $title = __( 'untitled' ); 1576 1576 return esc_html( $title ); 1577 1577 } 1578 1578 -
wp-includes/class-walker-page-dropdown.php
71 71 $title = $page->post_title; 72 72 if ( '' === $title ) { 73 73 /* translators: %d: ID of a post */ 74 $title = sprintf( __( ' #%d (no title)' ), $page->ID );74 $title = sprintf( __( 'untitled' ), $page->ID ); 75 75 } 76 76 77 77 /** -
wp-includes/class-walker-page.php
154 154 155 155 if ( '' === $page->post_title ) { 156 156 /* translators: %d: ID of a post */ 157 $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID);157 $page->post_title = sprintf(__('untitled'), $page->ID); 158 158 } 159 159 160 160 $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; -
wp-includes/class-wp-customize-nav-menus.php
197 197 $post_title = $post->post_title; 198 198 if ( '' === $post_title ) { 199 199 /* translators: %d: ID of a post */ 200 $post_title = sprintf( __( ' #%d (no title)' ), $post->ID );200 $post_title = sprintf( __( 'untitled' ), $post->ID ); 201 201 } 202 202 $items[] = array( 203 203 'id' => "post-{$post->ID}", -
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
289 289 290 290 if ( '' === $original_title ) { 291 291 /* translators: %d: ID of a post */ 292 $original_title = sprintf( __( ' #%d (no title)' ), $original_object->ID );292 $original_title = sprintf( __( 'untitled' ), $original_object->ID ); 293 293 } 294 294 } 295 295 } elseif ( 'taxonomy' === $item->type && ! empty( $item->object_id ) ) { -
wp-includes/nav-menu.php
749 749 750 750 if ( '' === $original_title ) { 751 751 /* translators: %d: ID of a post */ 752 $original_title = sprintf( __( ' #%d (no title)' ), $original_object->ID );752 $original_title = sprintf( __( 'untitled' ), $original_object->ID ); 753 753 } 754 754 755 755 $menu_item->title = '' == $menu_item->post_title ? $original_title : $menu_item->post_title; … … 827 827 828 828 if ( '' === $menu_item->post_title ) { 829 829 /* translators: %d: ID of a post */ 830 $menu_item->post_title = sprintf( __( ' #%d (no title)' ), $menu_item->ID );830 $menu_item->post_title = sprintf( __( 'untitled' ), $menu_item->ID ); 831 831 } 832 832 833 833 $menu_item->title = $menu_item->post_title;