Docs: Update the inline docs for `is_protected_meta()`.
See #42505 Built from https://develop.svn.wordpress.org/trunk@43043 git-svn-id: http://core.svn.wordpress.org/trunk@42872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf02373b39
commit
d488e773b0
|
@ -941,25 +941,25 @@ function _get_meta_table( $type ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Determine whether a meta key is protected.
|
||||
* Determines whether a meta key is considered protected.
|
||||
*
|
||||
* @since 3.1.3
|
||||
*
|
||||
* @param string $meta_key Meta key
|
||||
* @param string|null $meta_type
|
||||
* @return bool True if the key is protected, false otherwise.
|
||||
* @param string $meta_key Meta key.
|
||||
* @param string|null $meta_type Optional. Type of object metadata is for (e.g., comment, post, or user).
|
||||
* @return bool Whether the meta key is considered protected.
|
||||
*/
|
||||
function is_protected_meta( $meta_key, $meta_type = null ) {
|
||||
$protected = ( '_' == $meta_key[0] );
|
||||
|
||||
/**
|
||||
* Filters whether a meta key is protected.
|
||||
* Filters whether a meta key is considered protected.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param bool $protected Whether the key is protected. Default false.
|
||||
* @param bool $protected Whether the key is considered protected.
|
||||
* @param string $meta_key Meta key.
|
||||
* @param string $meta_type Meta type.
|
||||
* @param string|null $meta_type Type of object metadata is for (e.g., comment, post, or user).
|
||||
*/
|
||||
return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type );
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43042';
|
||||
$wp_version = '5.0-alpha-43043';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue