Changeset 25076
- Timestamp:
- 08/21/2013 09:10:23 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r24714 r25076 23 23 * @param int $object_id ID of the object metadata is for 24 24 * @param string $meta_key Metadata key 25 * @param string $meta_value Metadata value25 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 26 26 * @param bool $unique Optional, default is false. Whether the specified metadata key should be 27 27 * unique for the object. If true, and the object already has a value for the specified … … 94 94 * @param int $object_id ID of the object metadata is for 95 95 * @param string $meta_key Metadata key 96 * @param string $meta_value Metadata value97 * @param string$prev_value Optional. If specified, only update existing metadata entries with96 * @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 98 98 * the specified value. Otherwise, update all entries. 99 99 * @return bool True on successful update, false on failure. … … 175 175 * @param int $object_id ID of the object metadata is for 176 176 * @param string $meta_key Metadata key 177 * @param string $meta_value Optional. Metadata value. If specified, only delete metadata entries177 * @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete metadata entries 178 178 * with this value. Otherwise, delete all entries with the specified meta_key. 179 179 * @param bool $delete_all Optional, default is false. If true, delete matching metadata entries … … 721 721 unset( $this->queries[$k] ); 722 722 } 723 } 724 723 } 724 725 725 // Split out the meta_key only queries (we can only do this for OR) 726 726 if ( 'OR' == $this->relation ) { -
trunk/src/wp-includes/option.php
r25075 r25076 209 209 * 210 210 * @param string $option Option name. Expected to not be SQL-escaped. 211 * @param mixed $newvalue Option value. Expected to not be SQL-escaped.211 * @param mixed $newvalue Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 212 212 * @return bool False if value was not updated and true if value was updated. 213 213 */ … … 285 285 * 286 286 * @param string $option Name of option to add. Expected to not be SQL-escaped. 287 * @param mixed $value Optional. Option value , can be anything. Expected to not be SQL-escaped.287 * @param mixed $value Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 288 288 * @param mixed $deprecated Optional. Description. Not used anymore. 289 289 * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up. … … 489 489 * 490 490 * @param string $transient Transient name. Expected to not be SQL-escaped. 491 * @param mixed $value Transient value. Expected to not be SQL-escaped.491 * @param mixed $value Transient value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 492 492 * @param int $expiration Time until expiration in seconds, default 0 493 493 * @return bool False if value was not set and true if value was set. -
trunk/src/wp-includes/post.php
r25050 r25076 1672 1672 * @param int $post_id Post ID. 1673 1673 * @param string $meta_key Metadata name. 1674 * @param mixed $meta_value Metadata value. 1674 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1675 1675 * @param bool $unique Optional, default is false. Whether the same key should not be added. 1676 1676 * @return int|bool Meta ID on success, false on failure. … … 1696 1696 * @param int $post_id post ID 1697 1697 * @param string $meta_key Metadata name. 1698 * @param mixed $meta_value Optional. Metadata value. 1698 * @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. 1699 1699 * @return bool True on success, false on failure. 1700 1700 */ … … 1736 1736 * @param int $post_id Post ID. 1737 1737 * @param string $meta_key Metadata key. 1738 * @param mixed $meta_value Metadata value. 1738 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1739 1739 * @param mixed $prev_value Optional. Previous value to check before removing. 1740 1740 * @return bool True on success, false on failure.
Note: See TracChangeset
for help on using the changeset viewer.