Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #53152, comment 5


Ignore:
Timestamp:
08/15/2021 09:24:46 AM (5 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53152, comment 5

    v2 v3  
    1010* or `wp_set_object_terms()` should be locked down a bit more - possibly with an error if `is_string( $term ) && sanitize_title( $term ) !== $term` to rule out non-slug string values - a breaking change for existing sites that pass the term name
    1111
    12 If it's the latter, `wp_remove_object_terms()` may need to be updated too. I can open another ticket and look into this if this is the best direction.
     12If it's the latter, `wp_remove_object_terms()` may need to be updated too. If this is the best direction, I can look into this and open another ticket if the issue exists there too.
    1313
    1414It would be great if a dev could give some guidance on how to proceed with this.