mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Docs: Update and correct various inline documentation.
See #42505, #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@43177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -673,16 +673,16 @@ function format_code_lang( $code = '' ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronize category and post tag slugs when global terms are enabled.
|
||||
* Synchronizes category and post tag slugs when global terms are enabled.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param object $term The term.
|
||||
* @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are
|
||||
* the only taxonomies which are processed by this function; anything else
|
||||
* will be returned untouched.
|
||||
* @return object|array Returns `$term`, after filtering the 'slug' field with sanitize_title()
|
||||
* if $taxonomy is 'category' or 'post_tag'.
|
||||
* @param WP_Term|array $term The term.
|
||||
* @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are
|
||||
* the only taxonomies which are processed by this function; anything else
|
||||
* will be returned untouched.
|
||||
* @return WP_Term|array Returns `$term`, after filtering the 'slug' field with `sanitize_title()`
|
||||
* if `$taxonomy` is 'category' or 'post_tag'.
|
||||
*/
|
||||
function sync_category_tag_slugs( $term, $taxonomy ) {
|
||||
if ( global_terms_enabled() && ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user