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:
Scott Taylor
2013-08-21 21:10:23 +00:00
parent 790f9feb68
commit 20fa8b87b4
3 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -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.
*/