Ticket #38310: taxonomy.php.patch
File taxonomy.php.patch, 2.4 KB (added by , 3 years ago) |
---|
-
wp-includes/taxonomy.php
2919 2919 * Will make slug unique, if it isn't already. 2920 2920 * 2921 2921 * The `$slug` has to be unique global to every taxonomy, meaning that one 2922 * taxonomy term can't have a matching slug with another taxonomy term. Each 2923 * slug has to be globally unique for every taxonomy. 2922 * taxonomy term can't have a matching slug with another taxonomy term. 2924 2923 * 2925 2924 * The way this works is that if the taxonomy that the term belongs to is 2926 2925 * hierarchical and has a parent, it will append that parent to the $slug. … … 3022 3021 * Update term based on arguments provided. 3023 3022 * 3024 3023 * The `$args` will indiscriminately override all values with the same field name. 3025 * Care must be taken to not override important information need to update or3026 * update will fail (or perhaps create a new term, neither would be acceptable).3024 * Care must be taken to not override important information need to update 3025 * or update will fail (or perhaps create a new term, neither would be acceptable). 3027 3026 * 3028 * Defaults will set 'alias_of', 'description', 'parent', and 'slug' if not3027 * Defaults will set for the parameters like 'alias_of', 'description', 'parent', and 'slug' if not 3029 3028 * defined in `$args` already. 3030 3029 * 3031 3030 * 'alias_of' will create a term group, if it doesn't already exist, and 3032 3031 * update it for the `$term`. 3033 3032 * 3034 * If the 'slug' argument in `$args` is missing, then the 'name' will be used .3033 * If the 'slug' argument in `$args` is missing, then the 'name' will be used in place of 'slug'. 3035 3034 * If you set 'slug' and it isn't unique, then a WP_Error is returned. 3036 * If you don't pass any slug, then a unique onewill be created.3035 * If you don't pass any slug, then a unique slug will be created. 3037 3036 * 3038 3037 * @since 2.3.0 3039 3038 * … … 3046 3045 * 3047 3046 * @type string $alias_of Slug of the term to make this term an alias of. 3048 3047 * Default empty string. Accepts a term slug. 3049 * @type string $description The term description. Default empty string.3048 * @type string $description The description of term . Default empty string. 3050 3049 * @type int $parent The id of the parent term. Default 0. 3051 3050 * @type string $slug The term slug to use. Default empty string. 3052 3051 * }