[wp-trac] [WordPress Trac] #57265: Strip tags from post title in WP List Table

WordPress Trac noreply at wordpress.org
Tue Jan 17 23:26:50 UTC 2023


#57265: Strip tags from post title in WP List Table
-------------------------------------------------+-------------------------
 Reporter:  audrasjb                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch changes-   |     Focuses:
  requested                                      |  administration
-------------------------------------------------+-------------------------

Comment (by ironprogrammer):

 This looks much cleaner -- thanks, @audrasjb!

 == Test Report
 Patch tested: https://github.com/WordPress/wordpress-develop/pull/3852
 (after removal of `$allowable_tags`) 👍🏻

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 12.6.2
 - Browser: Safari 16.2
 - Server: nginx/1.23.3
 - PHP: 7.4.33
 - WordPress: 6.2-alpha-54642-src

 === Actual Results
 - ✅ Tags are stripped from displayed titles in post list table.

 === Supplemental Artifacts
 Titles tested below include tags typed manually in the post title field
 (the last three), as well as titles copied from styled text in a Google
 Doc (the first five).

 ||= Before Patch =||= After Patch =||
 || [[Image(https://cldup.com/dt4L1jsEoO.png)]] ||
 [[Image(https://cldup.com/ivFVZuHh6r.png)]] ||

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57265#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list