wordpress-develop/tests/phpunit/tests/term
Boone Gorges c2c8a6848d Taxonomy: Fix unique-slug check for terms with parents.
`wp_unique_term_slug()` appends numeric suffixes when the requested slug is
already in use by a sibling term. Changes introduced in [32837] inadvertently
caused this suffixing to be skipped in cases where the requested slug is
suffixed with the parent slug, so that it became possible to have two terms
`childslug-parentslug` underneath to the same `parentslug`. We fix this
regression by ensuring that the numeric-suffix routine runs in all cases.

Props yashar_hv, saskak, dlh.
Fixes #46431.

git-svn-id: https://develop.svn.wordpress.org/trunk@45893 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-26 15:18:40 +00:00
..
cache.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
categoryExists.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getEditTermLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTagLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTermBy.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTermField.php Tests: Fix two typos introduced for a get_term_field() test in [35270]. 2018-02-03 17:10:51 +00:00
getTermLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTermParentsList.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTerms.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
getTheTerms.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
isObjectInTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
meta.php REST API: Move object type-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2018-12-12 03:02:00 +00:00
query.php Taxonomy: Ensure consistency of hide_empty in term queries when taxonomy is excluded. 2019-08-23 16:04:07 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
splitSharedTerm.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
taxQuery.php Code is Poetry. 2017-11-30 23:09:33 +00:00
termExists.php Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays. 2019-07-15 06:24:08 +00:00
wpDeleteObjectTermRelationships.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteTerm.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpGenerateTagCloud.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpGetObjectTerms.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpInsertTerm.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
wpRemoveObjectTerms.php Bust object term cache in wp_remove_object_terms(). 2015-10-19 01:52:22 +00:00
wpSetObjectTerms.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpTaxonomy.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
wpTerm.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpUniqueTermSlug.php Taxonomy: Fix unique-slug check for terms with parents. 2019-08-26 15:18:40 +00:00
wpUpdateTerm.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00