[wp-trac] [WordPress Trac] #53152: wp_set_object_terms ampersand in term name
WordPress Trac
noreply at wordpress.org
Wed Mar 16 00:51:50 UTC 2022
#53152: wp_set_object_terms ampersand in term name
-------------------------------------------------+-------------------------
Reporter: kapacity | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.0
Component: Taxonomy | Version: 5.7.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback | administration
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
In [52921] `term_exists()` was modified to use `get_terms()` rather than
make a database query directly.
Searching by name is sanitized in `WP_Term_Query`.
[https://github.com/WordPress/wordpress-
develop/blob/4a9f5fe3be47914b3f2b30aaf863761335cf1ad2/src/wp-includes
/class-wp-term-query.php#L536 (source code ref)]
Is this still needed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53152#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list