Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r49699 r49927  
    772772 * @global wpdb $wpdb WordPress database abstraction object.
    773773 *
    774  * @param string $meta_type  Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
    775  *                           or any other object type with an associated meta table.
    776  * @param int    $meta_id    ID for a specific meta row.
    777  * @param string $meta_value Metadata value. Must be serializable if non-scalar.
    778  * @param string $meta_key   Optional. You can provide a meta key to update it. Default false.
     774 * @param string       $meta_type  Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user',
     775 *                                 or any other object type with an associated meta table.
     776 * @param int          $meta_id    ID for a specific meta row.
     777 * @param string       $meta_value Metadata value. Must be serializable if non-scalar.
     778 * @param string|false $meta_key   Optional. You can provide a meta key to update it. Default false.
    779779 * @return bool True on successful update, false on failure.
    780780 */
     
    809809     * @since 5.0.0
    810810     *
    811      * @param null|bool   $check      Whether to allow updating metadata for the given type.
    812      * @param int         $meta_id    Meta ID.
    813      * @param mixed       $meta_value Meta value. Must be serializable if non-scalar.
    814      * @param string|bool $meta_key   Meta key, if provided.
     811     * @param null|bool    $check      Whether to allow updating metadata for the given type.
     812     * @param int          $meta_id    Meta ID.
     813     * @param mixed        $meta_value Meta value. Must be serializable if non-scalar.
     814     * @param string|false $meta_key   Meta key, if provided.
    815815     */
    816816    $check = apply_filters( "update_{$meta_type}_metadata_by_mid", null, $meta_id, $meta_value, $meta_key );
Note: See TracChangeset for help on using the changeset viewer.