[wp-trac] [WordPress Trac] #59995: Taxonomy: Check for empty term after DB sanitization in wp_insert_term
WordPress Trac
noreply at wordpress.org
Mon Jan 8 22:43:05 UTC 2024
#59995: Taxonomy: Check for empty term after DB sanitization in wp_insert_term
--------------------------------------+-----------------------
Reporter: fgiannar | Owner: fgiannar
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Taxonomy | Version:
Severity: major | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57251" 57251]:
{{{
#!CommitTicketReference repository="" revision="57251"
Taxonomy: Check for empty term after DB sanitization in
`wp_insert_term()`.
When inserting a new term in the database, `wp_insert_term()` will check
if the term is empty and return a corresponding error.
Afterwards the term is sanitized and inserted in the database. However,
there is a chance the term is empty after the DB sanitization.
This commit adds a check for an empty term name after the term is
sanitized, returning an error in that case.
Follow-up to [5726], [8393].
Props fgiannar, kraftbj.
Fixes #59995.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59995#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list