mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -771,11 +771,11 @@ function get_metadata_by_mid( $meta_type, $meta_id ) {
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
|
||||
* or any other object type with an associated meta table.
|
||||
* @param int $meta_id ID for a specific meta row.
|
||||
* @param string $meta_value Metadata value. Must be serializable if non-scalar.
|
||||
* @param string $meta_key Optional. You can provide a meta key to update it. Default false.
|
||||
* @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
|
||||
* or any other object type with an associated meta table.
|
||||
* @param int $meta_id ID for a specific meta row.
|
||||
* @param string $meta_value Metadata value. Must be serializable if non-scalar.
|
||||
* @param string|false $meta_key Optional. You can provide a meta key to update it. Default false.
|
||||
* @return bool True on successful update, false on failure.
|
||||
*/
|
||||
function update_metadata_by_mid( $meta_type, $meta_id, $meta_value, $meta_key = false ) {
|
||||
@@ -808,10 +808,10 @@ function update_metadata_by_mid( $meta_type, $meta_id, $meta_value, $meta_key =
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param null|bool $check Whether to allow updating metadata for the given type.
|
||||
* @param int $meta_id Meta ID.
|
||||
* @param mixed $meta_value Meta value. Must be serializable if non-scalar.
|
||||
* @param string|bool $meta_key Meta key, if provided.
|
||||
* @param null|bool $check Whether to allow updating metadata for the given type.
|
||||
* @param int $meta_id Meta ID.
|
||||
* @param mixed $meta_value Meta value. Must be serializable if non-scalar.
|
||||
* @param string|false $meta_key Meta key, if provided.
|
||||
*/
|
||||
$check = apply_filters( "update_{$meta_type}_metadata_by_mid", null, $meta_id, $meta_value, $meta_key );
|
||||
if ( null !== $check ) {
|
||||
|
||||
Reference in New Issue
Block a user