Docs: Add missing `@param` and `@return` descriptions for `has_term_meta()`, `wp_delete_category()`, and `wp_term_is_shared()`.
Props keesiemeijer. Fixes #41096. git-svn-id: https://develop.svn.wordpress.org/trunk@40917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03cd8d5b70
commit
9d64fe2172
|
@ -1247,8 +1247,8 @@ function update_termmeta_cache( $term_ids ) {
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database abstraction object.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $term_id
|
* @param int $term_id Term ID.
|
||||||
* @return array|false
|
* @return array|false Array with meta data, or false when the meta table is not installed.
|
||||||
*/
|
*/
|
||||||
function has_term_meta( $term_id ) {
|
function has_term_meta( $term_id ) {
|
||||||
// Bail if term meta table is not installed.
|
// Bail if term meta table is not installed.
|
||||||
|
@ -1816,7 +1816,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param int $cat_ID
|
* @param int $cat_ID Category term ID.
|
||||||
* @return bool|int|WP_Error Returns true if completes delete action; false if term doesn't exist;
|
* @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.
|
||||||
*/
|
*/
|
||||||
|
@ -3820,8 +3820,9 @@ function wp_get_split_term( $old_term_id, $taxonomy ) {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param int $term_id
|
* @param int $term_id Term ID.
|
||||||
* @return bool
|
* @return bool Returns false if a term is not shared between multiple taxonomies or
|
||||||
|
* if splittng shared taxonomy terms is finished.
|
||||||
*/
|
*/
|
||||||
function wp_term_is_shared( $term_id ) {
|
function wp_term_is_shared( $term_id ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
Loading…
Reference in New Issue