[wp-trac] [WordPress Trac] #39545: add a filter to allow the date status to be modified in post columns
WordPress Trac
noreply at wordpress.org
Mon Feb 20 12:21:19 UTC 2017
#39545: add a filter to allow the date status to be modified in post columns
-------------------------------+--------------------
Reporter: pbearne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
-------------------------------+--------------------
Changes (by SergeyBiryukov):
* keywords: has-patch dev-feedback => has-patch commit
* milestone: Awaiting Review => 4.8
Comment:
[attachment:39545.patch] makes the filter more consistent with
`post_date_column_time`.
A single `post_date_column_status` filter seems more handy here, as it
allows for removing "Published" status text for all post types in one
function, and also allows for differentiating per post type by checking
the `$post` argument.
If we also want to add a dynamic `$post->post_type`-based filter here,
let's do the same for `post_date_column_time`, but I don't see an
immediate need in that.
(I also don't think there's a need for escaping here. Translations in core
are inherently trusted, and the output of `post_date_column_time` filter
is not escaped either.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39545#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list