[wp-trac] [WordPress Trac] #17609: 'View post' link shown even when post type can't be viewed on the front-end
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 19 02:01:02 UTC 2011
#17609: 'View post' link shown even when post type can't be viewed on the front-end
-----------------------------------------+-----------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback |
-----------------------------------------+-----------------------------
Comment (by dd32):
> Instead of hardcoding "Post" it will use the singular label from the
post_types labels array. This deviates a bit from the scope of this
ticket.
It also causes translation problems unfortunately, In quite a lot of
languages you can't simply slot a "object label" into a generic string -
In English this is no problem, but when you start to deal with
feminine/mascular/cultural words, 'Page' and 'Post' require the strings
around them to be translated differently.
If a plugin/theme wishes for their Messages to be translated, they should
instead use the 'post_updated_messages' filter, as shown in the 2nd half
of the example here:
[http://codex.wordpress.org/Function_Reference/register_post_type#Example
Function_Reference/register_post_type#Example]
Given the above, The View Post link can already be removed by the plugin
since they can modify their strings already.. I like the suggestion of
using a placeholder for the "actions" attached, but this would also cause
problems for those using the filter and expecting it to be a url (rather
than an actual HTML link)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17609#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list