[wp-trac] [WordPress Trac] #58329: Double sanitization in get_term function

WordPress Trac noreply at wordpress.org
Wed Sep 20 11:32:02 UTC 2023


#58329: Double sanitization in get_term function
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.4
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 Blackfire profile - https://blackfire.io/profiles/compare/79ce730a-
 a7f6-4f38-841f-a7481b290c45/graph - 2020 theme.

 Benchmark data. 1000 runs - local docker - PhP 7.4
 || || Trunk - 2020 theme || PR - 2020 theme  || Trunk - 2023 theme || PR -
 2023 theme||
 || Response Time (median)|| 121.28 || 115.35 || 77.56 || 77.65||
 || wp-load-alloptions-query (median)|| 0.62 || 0.61 || 0.59 || 0.6||
 || wp-before-template (median)|| 21.42 || 20.36 || 32.2 || 32.31||
 || wp-template (median)|| 90.36 || 86.02 || 40.15 || 40.3||
 || wp-total (median)|| 112.24 || 106.51 || 72.54 || 72.81||

 There are clear benefits for classic themes. CC @flixos90 @joemcgill

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


More information about the wp-trac mailing list