diff --git wp-includes/meta.php wp-includes/meta.php
index 3964644..34d3e84 100644
|
|
|
22 | 22 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
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 value |
| 25 | * @param serializable $meta_value Metadata value |
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 |
28 | 28 | * metadata key, no change will be made |
… |
… |
function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = |
93 | 93 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
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 value |
97 | | * @param string $prev_value Optional. If specified, only update existing metadata entries with |
| 96 | * @param serializable $meta_value Metadata value |
| 97 | * @param serializable $prev_value 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. |
100 | 100 | */ |
… |
… |
function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v |
174 | 174 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
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 entries |
| 177 | * @param serializable $meta_value Metadata value. 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 |
180 | 180 | * for all objects, ignoring the specified object_id. Otherwise, only delete matching |
diff --git wp-includes/option.php wp-includes/option.php
index 33897b6..e456a06 100644
|
|
function wp_load_core_site_options( $site_id = null ) { |
209 | 209 | * @uses do_action() Calls 'update_option_$option' and 'updated_option' hooks on success. |
210 | 210 | * |
211 | 211 | * @param string $option Option name. Expected to not be SQL-escaped. |
212 | | * @param mixed $newvalue Option value. Expected to not be SQL-escaped. |
| 212 | * @param serializable $newvalue Option value. Expected to not be SQL-escaped. |
213 | 213 | * @return bool False if value was not updated and true if value was updated. |
214 | 214 | */ |
215 | 215 | function update_option( $option, $newvalue ) { |
… |
… |
function update_option( $option, $newvalue ) { |
285 | 285 | * @uses do_action() Calls 'add_option_$option' and 'added_option' hooks on success. |
286 | 286 | * |
287 | 287 | * @param string $option Name of option to add. Expected to not be SQL-escaped. |
288 | | * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped. |
| 288 | * @param serializable $value Option value. Expected to not be SQL-escaped. |
289 | 289 | * @param mixed $deprecated Optional. Description. Not used anymore. |
290 | 290 | * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up. |
291 | 291 | * @return bool False if option was not added and true if option was added. |
… |
… |
function get_transient( $transient ) { |
484 | 484 | * @uses do_action() Calls 'set_transient_$transient' and 'setted_transient' hooks on success. |
485 | 485 | * |
486 | 486 | * @param string $transient Transient name. Expected to not be SQL-escaped. |
487 | | * @param mixed $value Transient value. Expected to not be SQL-escaped. |
| 487 | * @param serializable $value Transient value. Expected to not be SQL-escaped. |
488 | 488 | * @param int $expiration Time until expiration in seconds, default 0 |
489 | 489 | * @return bool False if value was not set and true if value was set. |
490 | 490 | */ |
diff --git wp-includes/post.php wp-includes/post.php
index 29ee906..6a18afb 100644
|
|
function get_posts($args = null) { |
1588 | 1588 | * |
1589 | 1589 | * @param int $post_id Post ID. |
1590 | 1590 | * @param string $meta_key Metadata name. |
1591 | | * @param mixed $meta_value Metadata value. |
| 1591 | * @param serializable $meta_value Metadata value. |
1592 | 1592 | * @param bool $unique Optional, default is false. Whether the same key should not be added. |
1593 | 1593 | * @return bool False for failure. True for success. |
1594 | 1594 | */ |
… |
… |
function add_post_meta($post_id, $meta_key, $meta_value, $unique = false) { |
1613 | 1613 | * |
1614 | 1614 | * @param int $post_id post ID |
1615 | 1615 | * @param string $meta_key Metadata name. |
1616 | | * @param mixed $meta_value Optional. Metadata value. |
| 1616 | * @param serializable $meta_value Optional. Metadata value. |
1617 | 1617 | * @return bool False for failure. True for success. |
1618 | 1618 | */ |
1619 | 1619 | function delete_post_meta($post_id, $meta_key, $meta_value = '') { |
… |
… |
function get_post_meta($post_id, $key = '', $single = false) { |
1655 | 1655 | * |
1656 | 1656 | * @param int $post_id Post ID. |
1657 | 1657 | * @param string $meta_key Metadata key. |
1658 | | * @param mixed $meta_value Metadata value. |
1659 | | * @param mixed $prev_value Optional. Previous value to check before removing. |
| 1658 | * @param serializable $meta_value Metadata value. |
| 1659 | * @param serializable $prev_value Previous value to check before removing. |
1660 | 1660 | * @return bool False on failure, true if success. |
1661 | 1661 | */ |
1662 | 1662 | function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') { |