Changeset 43177 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 05/07/2018 05:19:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r42875 r43177 674 674 675 675 /** 676 * Synchronize category and post tag slugs when global terms are enabled.677 * 678 * @since 3.0.0 679 * 680 * @param object$term The term.681 * @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are682 * the only taxonomies which are processed by this function; anything else683 * will be returned untouched.684 * @return object|array Returns `$term`, after filtering the 'slug' field with sanitize_title()685 * if $taxonomyis 'category' or 'post_tag'.676 * Synchronizes category and post tag slugs when global terms are enabled. 677 * 678 * @since 3.0.0 679 * 680 * @param WP_Term|array $term The term. 681 * @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are 682 * the only taxonomies which are processed by this function; anything else 683 * will be returned untouched. 684 * @return WP_Term|array Returns `$term`, after filtering the 'slug' field with `sanitize_title()` 685 * if `$taxonomy` is 'category' or 'post_tag'. 686 686 */ 687 687 function sync_category_tag_slugs( $term, $taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.