[wp-trac] [WordPress Trac] #39388: Can't delete tags under custom taxonomies

WordPress Trac noreply at wordpress.org
Sun Mar 12 19:07:26 UTC 2017


#39388: Can't delete tags under custom taxonomies
-------------------------------+------------------------------
 Reporter:  contempoinc        |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by boonebgorges):

 * milestone:   => Awaiting Review


Comment:

 @contempoinc I also can't reproduce the error.

 Are you running any plugins or other modifications using the
 'terms_clauses' or 'get_terms_orderby' filter? Prior to WP 4.7, these
 filters didn't run during `wp_get_object_terms()`, which may explain why
 you're seeing your problem only in 4.7+. Looking at the malformed SQL
 you've posted, I'm guessing that a plugin is doing some overzealous string
 manipulation via one of these filters. (The `ORDER BY` clause is tightly
 controlled with a whitelist, so it's impossible for `ORDER BY  * 1` to
 appear except by these filters, or perhaps a more generic filter like
 `'query'`. It doesn't appear possible for this syntax to be generated by
 WordPress itself.)

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


More information about the wp-trac mailing list