mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488.
git-svn-id: https://develop.svn.wordpress.org/trunk@25076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1671,7 +1671,7 @@ function get_posts($args = null) {
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $meta_key Metadata name.
|
||||
* @param mixed $meta_value Metadata value.
|
||||
* @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
|
||||
* @param bool $unique Optional, default is false. Whether the same key should not be added.
|
||||
* @return int|bool Meta ID on success, false on failure.
|
||||
*/
|
||||
@@ -1695,7 +1695,7 @@ function add_post_meta($post_id, $meta_key, $meta_value, $unique = false) {
|
||||
*
|
||||
* @param int $post_id post ID
|
||||
* @param string $meta_key Metadata name.
|
||||
* @param mixed $meta_value Optional. Metadata value.
|
||||
* @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar.
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
function delete_post_meta($post_id, $meta_key, $meta_value = '') {
|
||||
@@ -1735,7 +1735,7 @@ function get_post_meta($post_id, $key = '', $single = false) {
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $meta_key Metadata key.
|
||||
* @param mixed $meta_value Metadata value.
|
||||
* @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
|
||||
* @param mixed $prev_value Optional. Previous value to check before removing.
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user