Make WordPress Core


Ignore:
Timestamp:
06/20/2015 07:49:43 PM (7 years ago)
Author:
ocean90
Message:

Customizer: Improve handling of posts with no title.

Use the #%d (no title) string as a fallback which is already used on the nav menus screen.
Add a translator comment to all occurrences of the #%d (no title) string.

see #32576.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r32727 r32892  
    14191419
    14201420        if ( '' === $page->post_title ) {
     1421            /* translators: %d: ID of a post */
    14211422            $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID );
    14221423        }
     
    15091510        $title = $page->post_title;
    15101511        if ( '' === $title ) {
     1512            /* translators: %d: ID of a post */
    15111513            $title = sprintf( __( '#%d (no title)' ), $page->ID );
    15121514        }
Note: See TracChangeset for help on using the changeset viewer.