mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Various docblock fixes in Core Taxonomy API, as per docs standards.
See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ecd5e004f1
commit
1f2f4bc89b
@ -557,7 +557,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
|
||||
*
|
||||
* @since 4.5.0
|
||||
*
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @global WP_Taxonomy[] $wp_taxonomies List of taxonomies.
|
||||
*
|
||||
* @param string $taxonomy Taxonomy name.
|
||||
@ -2159,7 +2159,8 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
|
||||
*
|
||||
* @param int $cat_ID Category term ID.
|
||||
* @return bool|int|WP_Error Returns true if completes delete action; false if term doesn't exist;
|
||||
* Zero on attempted deletion of default Category; WP_Error object is also a possibility.
|
||||
* Zero on attempted deletion of default Category; WP_Error object is
|
||||
* also a possibility.
|
||||
*/
|
||||
function wp_delete_category( $cat_ID ) {
|
||||
return wp_delete_term( $cat_ID, 'category' );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user