[wp-trac] [WordPress Trac] #51403: Add filter for _post_states as it outputs raw HTML

WordPress Trac noreply at wordpress.org
Mon Sep 28 07:39:47 UTC 2020


#51403: Add filter for _post_states as it outputs raw HTML
----------------------------------------+-----------------------------
 Reporter:  brandbrilliance             |      Owner:  (none)
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Posts, Post Types           |    Version:  5.5.1
 Severity:  normal                      |   Keywords:
  Focuses:  template, coding-standards  |
----------------------------------------+-----------------------------
 Currently this function can't be overridden with a filter, so it outputs
 raw HTML separators and such directly into the post title in the edit
 screen. However it should be suggested to make it possible to display the
 post states in your own custom function, e.g. remove the separators and
 the divider with the title, which are currently hard-coded at the moment
 in the function as raw HTML?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51403>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list