#39545 closed enhancement (fixed)
add a filter to allow the date status to be modified in post columns
| Reported by: | pbearne | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Posts, Post Types | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Attachments (2)
Change History (6)
#2
@
10 years ago
- Keywords commit added; dev-feedback removed
- Milestone Awaiting Review → 4.8
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.)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

patch