Changeset 32892
- Timestamp:
- 06/20/2015 07:49:43 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r32891 r32892 110 110 ) ); 111 111 foreach ( $posts as $post ) { 112 $post_title = $post->post_title; 113 if ( '' === $post_title ) { 114 /* translators: %d: ID of a post */ 115 $post_title = sprintf( __( '#%d (no title)' ), $post->ID ); 116 } 112 117 $items[] = array( 113 118 'id' => "post-{$post->ID}", 114 'title' => html_entity_decode( get_the_title( $post ), ENT_QUOTES, get_bloginfo( 'charset' ) ),119 'title' => html_entity_decode( $post_title, ENT_QUOTES, get_bloginfo( 'charset' ) ), 115 120 'type' => 'post_type', 116 121 'type_label' => get_post_type_object( $post->post_type )->labels->singular_name, … … 217 222 if ( $get_posts->post_count ) { 218 223 foreach ( $get_posts->posts as $post ) { 224 $post_title = $post->post_title; 225 if ( '' === $post_title ) { 226 /* translators: %d: ID of a post */ 227 $post_title = sprintf( __( '#%d (no title)' ), $post->ID ); 228 } 219 229 $results[] = array( 220 230 'id' => 'post-' . $post->ID, … … 223 233 'object' => $post->post_type, 224 234 'object_id' => intval( $post->ID ), 225 'title' => html_entity_decode( get_the_title( $post ), ENT_QUOTES, get_bloginfo( 'charset' ) ),235 'title' => html_entity_decode( $post_title, ENT_QUOTES, get_bloginfo( 'charset' ) ), 226 236 ); 227 237 } … … 271 281 'itemTypes' => $this->available_item_types(), 272 282 'l10n' => array( 273 'untitled' => _x( '(no label)', ' Missing menu item navigation label.' ),283 'untitled' => _x( '(no label)', 'missing menu item navigation label' ), 274 284 'custom_label' => __( 'Custom Link' ), 275 285 /* translators: %s: Current menu location */ -
trunk/src/wp-includes/nav-menu.php
r32764 r32892 703 703 704 704 if ( '' === $original_title ) { 705 /* translators: %d: ID of a post */ 705 706 $original_title = sprintf( __( '#%d (no title)' ), $original_object->ID ); 706 707 } … … 765 766 $menu_item->type_label = $object->labels->singular_name; 766 767 767 if ( '' === $menu_item->post_title ) 768 if ( '' === $menu_item->post_title ) { 769 /* translators: %d: ID of a post */ 768 770 $menu_item->post_title = sprintf( __( '#%d (no title)' ), $menu_item->ID ); 771 } 769 772 770 773 $menu_item->title = $menu_item->post_title; -
trunk/src/wp-includes/post-template.php
r32727 r32892 1419 1419 1420 1420 if ( '' === $page->post_title ) { 1421 /* translators: %d: ID of a post */ 1421 1422 $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID ); 1422 1423 } … … 1509 1510 $title = $page->post_title; 1510 1511 if ( '' === $title ) { 1512 /* translators: %d: ID of a post */ 1511 1513 $title = sprintf( __( '#%d (no title)' ), $page->ID ); 1512 1514 }
Note: See TracChangeset
for help on using the changeset viewer.