mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 06:05:42 +00:00
ec49827b0baf58ccdab1ad207c0df6ea604711ee
wp_insert_term(), allow a term with an existing name if a unique $slug has been provided.
`wp_insert_term()` protects against the creation of terms with duplicate names at the same level of a taxonomy hierarchy. However, it's historically been possible to override this protection by explicitly providing a value of `$slug` that is unique at the hierarchy tier. This ability was broken in [31734], and the current changeset restores the original behavior. A number of unit tests are added and refactored in support of these changes. See #17689 for discussion of a fix that was superceded by [31734]. This commit retains the fix for the underlying bug described in that ticket. See #31328. git-svn-id: https://develop.svn.wordpress.org/trunk@31792 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%