[wp-trac] [WordPress Trac] #23254: Empty Page Title Not Handled in Menu System
WordPress Trac
noreply at wordpress.org
Tue Jan 22 04:08:53 UTC 2013
#23254: Empty Page Title Not Handled in Menu System
-------------------------------------+------------------
Reporter: cais | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Menus | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Changes (by DrewAPicture):
* cc: DrewAPicture (added)
* milestone: Awaiting Review => 3.6
Comment:
You can probably boil down the value passed to the filter into a single
variable. Something like:
{{{
$page_title = empty( $page->post_title ) ? __( 'Page-' ) . $page->ID :
$page->post_title;
}}}
In trying to reproduce from the standpoint of the menu editor, there are
additional issues when working with pages sans-title, namely:
* Title-less pages added to a menu hold a temporary title of '(Pending)'
and the item is dropped completely on save
* We should really have some kind of title in the metabox list instead of
a naked checkbox
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23254#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list