Make WordPress Core


Ignore:
Timestamp:
08/21/2013 09:10:23 PM (11 years ago)
Author:
wonderboymusic
Message:

Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488.

File:
1 edited

Legend:

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

    r24714 r25076  
    2323 * @param int $object_id ID of the object metadata is for
    2424 * @param string $meta_key Metadata key
    25  * @param string $meta_value Metadata value
     25 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
    2626 * @param bool $unique Optional, default is false. Whether the specified metadata key should be
    2727 *      unique for the object. If true, and the object already has a value for the specified
     
    9494 * @param int $object_id ID of the object metadata is for
    9595 * @param string $meta_key Metadata key
    96  * @param string $meta_value Metadata value
    97  * @param string $prev_value Optional. If specified, only update existing metadata entries with
     96 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
     97 * @param mixed $prev_value Optional. If specified, only update existing metadata entries with
    9898 *      the specified value. Otherwise, update all entries.
    9999 * @return bool True on successful update, false on failure.
     
    175175 * @param int $object_id ID of the object metadata is for
    176176 * @param string $meta_key Metadata key
    177  * @param string $meta_value Optional. Metadata value. If specified, only delete metadata entries
     177 * @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete metadata entries
    178178 *      with this value. Otherwise, delete all entries with the specified meta_key.
    179179 * @param bool $delete_all Optional, default is false. If true, delete matching metadata entries
     
    721721                unset( $this->queries[$k] );
    722722            }
    723         }       
    724        
     723        }
     724
    725725        // Split out the meta_key only queries (we can only do this for OR)
    726726        if ( 'OR' == $this->relation ) {
Note: See TracChangeset for help on using the changeset viewer.