[wp-trac] [WordPress Trac] #42096: `WP_Term_Query` sanitizes `slug` parameter incorrectly

WordPress Trac noreply at wordpress.org
Tue Oct 10 19:21:51 UTC 2017


#42096: `WP_Term_Query` sanitizes `slug` parameter incorrectly
------------------------------------------+-----------------------------
 Reporter:  boonebgorges                  |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Taxonomy                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by petertoi):

 Heads up that the `pre_term_slug` callback also falls into view for this
 patch. This hook is run when `sanitize_term_field` is called during query
 parsing.

 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes
 /default-filters.php?marks=77#L77

 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-includes/class-
 wp-query.php?marks=1208,1214,1218#L1204

 https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
 includes/taxonomy.php?marks=1455#L1433

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


More information about the wp-trac mailing list