[wp-trac] [WordPress Trac] #27059: Add View Page button for private pages
WordPress Trac
noreply at wordpress.org
Sun Mar 9 13:50:31 UTC 2014
#27059: Add View Page button for private pages
-------------------------------+---------------------------------
Reporter: mordauk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Posts, Post Types | Version: 3.8.1
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: ui, administration
-------------------------------+---------------------------------
Comment (by nacin):
I don't really understand this either:
{{{
if ( 'publish' == get_post_status( $post ) ) {
$title = __('Click to edit this part of the permalink');
} else {
$title = __('Temporary permalink. Click to edit this
part.');
}
}}}
Realistically that first branch applies to 'private', and really 'future'
too. There isn't an obvious way to discern those from the post status
object though, so holding off on an immediate change. It's also only a
title attribute, which is probably why no one else noticed it either. And
generally, perhaps get_sample_permalink()'s blacklist of 'draft' and
'pending' would make more sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27059#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list