Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-includes/nav-menu-template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
  *                                               Uses printf() format with numbered placeholders.
44 44
  *     @type string             $item_spacing    Whether to preserve whitespace within the menu's HTML. Accepts 'preserve' or 'discard'. Default 'preserve'.
45 45
  * }
46
- * @return string|false|void Menu output if $echo is false, false if there are no items or no menu was found.
46
+ * @return string Menu output if $echo is false, false if there are no items or no menu was found.
47 47
  */
48 48
 function wp_nav_menu( $args = array() ) {
49 49
 	static $menu_id_slugs = array();
Please login to merge, or discard this patch.
src/wp-includes/pluggable.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
  *
746 746
  * @param string $cookie
747 747
  * @param string $scheme Optional. The cookie scheme to use: auth, secure_auth, or logged_in
748
- * @return array|false Authentication cookie components
748
+ * @return string Authentication cookie components
749 749
  */
750 750
 function wp_parse_auth_cookie($cookie = '', $scheme = '') {
751 751
 	if ( empty($cookie) ) {
@@ -1063,7 +1063,7 @@  discard block
 block discarded – undo
1063 1063
  *
1064 1064
  * @since 1.2.0
1065 1065
  *
1066
- * @param int|string $action    Action nonce.
1066
+ * @param integer $action    Action nonce.
1067 1067
  * @param string     $query_arg Optional. Key to check for nonce in `$_REQUEST` (since 2.5).
1068 1068
  *                              Default '_wpnonce'.
1069 1069
  * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
  *
1104 1104
  * @since 2.0.3
1105 1105
  *
1106
- * @param int|string   $action    Action nonce.
1106
+ * @param integer   $action    Action nonce.
1107 1107
  * @param false|string $query_arg Optional. Key to check for the nonce in `$_REQUEST` (since 2.5). If false,
1108 1108
  *                                `$_REQUEST` values will be evaluated for '_ajax_nonce', and '_wpnonce'
1109 1109
  *                                (in that order). Default false.
@@ -1578,7 +1578,7 @@  discard block
 block discarded – undo
1578 1578
  * should be notified, overriding the site setting.
1579 1579
  *
1580 1580
  * @param int $comment_id Comment ID.
1581
- * @return true Always returns true.
1581
+ * @return boolean Always returns true.
1582 1582
  */
1583 1583
 function wp_notify_moderator($comment_id) {
1584 1584
 	global $wpdb;
@@ -1768,7 +1768,7 @@  discard block
 block discarded – undo
1768 1768
  * @global PasswordHash $wp_hasher Portable PHP password hashing framework instance.
1769 1769
  *
1770 1770
  * @param int    $user_id    User ID.
1771
- * @param null   $deprecated Not used (argument deprecated).
1771
+ * @param null|string   $deprecated Not used (argument deprecated).
1772 1772
  * @param string $notify     Optional. Type of notification that should happen. Accepts 'admin' or an empty
1773 1773
  *                           string (admin only), 'user', or 'both' (admin and user). Default empty.
1774 1774
  */
@@ -1867,8 +1867,8 @@  discard block
 block discarded – undo
1867 1867
  * @since 2.0.3
1868 1868
  *
1869 1869
  * @param string     $nonce  Nonce that was used in the form to verify
1870
- * @param string|int $action Should give context to what is taking place and be the same when nonce was created.
1871
- * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
1870
+ * @param integer $action Should give context to what is taking place and be the same when nonce was created.
1871
+ * @return string False if the nonce is invalid, 1 if the nonce is valid and generated between
1872 1872
  *                   0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
1873 1873
  */
1874 1874
 function wp_verify_nonce( $nonce, $action = -1 ) {
@@ -1931,7 +1931,7 @@  discard block
 block discarded – undo
1931 1931
  * @since 2.0.3
1932 1932
  * @since 4.0.0 Session tokens were integrated with nonce creation
1933 1933
  *
1934
- * @param string|int $action Scalar value to add context to the nonce.
1934
+ * @param integer $action Scalar value to add context to the nonce.
1935 1935
  * @return string The token.
1936 1936
  */
1937 1937
 function wp_create_nonce($action = -1) {
Please login to merge, or discard this patch.
src/wp-includes/plugin.php 1 patch
Doc Comments   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
  *                                  and functions with the same priority are executed
102 102
  *                                  in the order in which they were added to the action.
103 103
  * @param int      $accepted_args   Optional. The number of arguments the function accepts. Default 1.
104
- * @return true
104
+ * @return boolean
105 105
  */
106 106
 function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
107 107
 	global $wp_filter;
@@ -170,7 +170,6 @@  discard block
 block discarded – undo
170 170
  *
171 171
  * @param string $tag     The name of the filter hook.
172 172
  * @param mixed  $value   The value on which the filters hooked to `$tag` are applied on.
173
- * @param mixed  $var,... Additional variables passed to the functions hooked to `$tag`.
174 173
  * @return mixed The filtered value after all hooked functions are applied to it.
175 174
  */
176 175
 function apply_filters( $tag, $value ) {
@@ -291,7 +290,7 @@  discard block
 block discarded – undo
291 290
  *
292 291
  * @param string   $tag      The filter to remove hooks from.
293 292
  * @param int|bool $priority Optional. The priority number to remove. Default false.
294
- * @return true True when finished.
293
+ * @return boolean True when finished.
295 294
  */
296 295
 function remove_all_filters( $tag, $priority = false ) {
297 296
 	global $wp_filter;
@@ -393,7 +392,7 @@  discard block
 block discarded – undo
393 392
  *                                  and functions with the same priority are executed
394 393
  *                                  in the order in which they were added to the action.
395 394
  * @param int      $accepted_args   Optional. The number of arguments the function accepts. Default 1.
396
- * @return true Will always return true.
395
+ * @return boolean Will always return true.
397 396
  */
398 397
 function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) {
399 398
 	return add_filter($tag, $function_to_add, $priority, $accepted_args);
@@ -415,8 +414,6 @@  discard block
 block discarded – undo
415 414
  * @global array $wp_current_filter Stores the list of current filters with the current one last
416 415
  *
417 416
  * @param string $tag     The name of the action to be executed.
418
- * @param mixed  $arg,... Optional. Additional arguments which are passed on to the
419
- *                        functions hooked to the action. Default empty.
420 417
  */
421 418
 function do_action($tag, $arg = '') {
422 419
 	global $wp_filter, $wp_actions, $wp_current_filter;
@@ -562,7 +559,7 @@  discard block
 block discarded – undo
562 559
  *
563 560
  * @param string   $tag      The action to remove hooks from.
564 561
  * @param int|bool $priority The priority number to remove them from. Default false.
565
- * @return true True when finished.
562
+ * @return boolean True when finished.
566 563
  */
567 564
 function remove_all_actions($tag, $priority = false) {
568 565
 	return remove_all_filters($tag, $priority);
@@ -607,7 +604,7 @@  discard block
 block discarded – undo
607 604
  * @see _deprecated_hook()
608 605
  *
609 606
  * @param string $tag         The name of the action hook.
610
- * @param array  $args        Array of additional function arguments to be passed to do_action().
607
+ * @param WP_Post[]  $args        Array of additional function arguments to be passed to do_action().
611 608
  * @param string $version     The version of WordPress that deprecated the hook.
612 609
  * @param string $replacement Optional. The hook that should have been used.
613 610
  * @param string $message     Optional. A message regarding the change.
Please login to merge, or discard this patch.
src/wp-includes/pomo/translations.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
 	/**
74 74
 	 * @param string $header
75
+	 * @return string
75 76
 	 */
76 77
 	function get_header($header) {
77 78
 		return isset($this->headers[$header])? $this->headers[$header] : false;
@@ -150,7 +151,7 @@  discard block
 block discarded – undo
150 151
 	}
151 152
 
152 153
 	/**
153
-	 * @param object $other
154
+	 * @param Translations $other
154 155
 	 */
155 156
 	function merge_originals_with(&$other) {
156 157
 		foreach( $other->entries as $entry ) {
@@ -326,7 +327,7 @@  discard block
 block discarded – undo
326 327
 	/**
327 328
 	 *
328 329
 	 * @param int $count
329
-	 * @return bool
330
+	 * @return integer
330 331
 	 */
331 332
 	function select_plural_form($count) {
332 333
 		return 1 == $count? 0 : 1;
Please login to merge, or discard this patch.
src/wp-includes/post-template.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
  *
105 105
  * @since 0.71
106 106
  *
107
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
107
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
108 108
  * @return string
109 109
  */
110 110
 function get_the_title( $post = 0 ) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  *
170 170
  * @since 1.5.0
171 171
  *
172
- * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post.
172
+ * @param integer $post Optional. Post ID or post object. Default is global $post.
173 173
  */
174 174
 function the_guid( $post = 0 ) {
175 175
 	$post = get_post( $post );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
  *
200 200
  * @since 1.5.0
201 201
  *
202
- * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post.
202
+ * @param integer $post Optional. Post ID or post object. Default is global $post.
203 203
  * @return string
204 204
  */
205 205
 function get_the_guid( $post = 0 ) {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
  *
403 403
  * @since 2.3.0
404 404
  *
405
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
405
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
406 406
  * @return bool True if the post has a custom excerpt, false otherwise.
407 407
  */
408 408
 function has_excerpt( $post = 0 ) {
@@ -1461,7 +1461,7 @@  discard block
 block discarded – undo
1461 1461
  *
1462 1462
  * @since 2.0.0
1463 1463
  *
1464
- * @param int|WP_Post $id Optional. Post ID or post object.
1464
+ * @param integer $id Optional. Post ID or post object.
1465 1465
  * @param bool        $fullsize     Optional, default is false. Whether to use full size.
1466 1466
  * @param bool        $deprecated   Deprecated. Not used.
1467 1467
  * @param bool        $permalink    Optional, default is false. Whether to include permalink.
@@ -1482,7 +1482,7 @@  discard block
 block discarded – undo
1482 1482
  * @since 2.5.0
1483 1483
  * @since 4.4.0 The `$id` parameter can now accept either a post ID or `WP_Post` object.
1484 1484
  *
1485
- * @param int|WP_Post  $id        Optional. Post ID or post object.
1485
+ * @param integer  $id        Optional. Post ID or post object.
1486 1486
  * @param string|array $size      Optional. Image size. Accepts any valid image size, or an array
1487 1487
  *                                of width and height values in pixels (in that order).
1488 1488
  *                                Default 'thumbnail'.
@@ -1592,7 +1592,7 @@  discard block
 block discarded – undo
1592 1592
  *
1593 1593
  * @since 1.0.0
1594 1594
  *
1595
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
1595
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
1596 1596
  * @return string HTML content for password form for password protected post.
1597 1597
  */
1598 1598
 function get_the_password_form( $post = 0 ) {
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
  *
1783 1783
  * @since 2.6.0
1784 1784
  *
1785
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
1785
+ * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post.
1786 1786
  * @param string      $type    'all' (default), 'revision' or 'autosave'
1787 1787
  */
1788 1788
 function wp_list_post_revisions( $post_id = 0, $type = 'all' ) {
Please login to merge, or discard this patch.
src/wp-includes/post.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
  * @since 1.0.0
474 474
  *
475 475
  * @param string $post Post content.
476
- * @return array Post before ('main'), after ('extended'), and custom read more ('more_text').
476
+ * @return integer Post before ('main'), after ('extended'), and custom read more ('more_text').
477 477
  */
478 478
 function get_extended( $post ) {
479 479
 	//Match the new style more links.
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
  *
1363 1363
  * @access private
1364 1364
  *
1365
- * @param object|WP_Post_Type $post_type_object Post type object.
1365
+ * @param WP_Post_Type|null $post_type_object Post type object.
1366 1366
  * @return object Object with all the labels as member variables.
1367 1367
  */
1368 1368
 function get_post_type_labels( $post_type_object ) {
@@ -1727,7 +1727,7 @@  discard block
 block discarded – undo
1727 1727
  *
1728 1728
  * @param int    $post_id    Post ID.
1729 1729
  * @param string $meta_key   Metadata name.
1730
- * @param mixed  $meta_value Optional. Metadata value. Must be serializable if
1730
+ * @param string  $meta_value Optional. Metadata value. Must be serializable if
1731 1731
  *                           non-scalar. Default empty.
1732 1732
  * @return bool True on success, false on failure.
1733 1733
  */
@@ -2420,7 +2420,7 @@  discard block
 block discarded – undo
2420 2420
  * @param int  $postid       Optional. Post ID. Default 0.
2421 2421
  * @param bool $force_delete Optional. Whether to bypass trash and force deletion.
2422 2422
  *                           Default false.
2423
- * @return array|false|WP_Post False on failure.
2423
+ * @return string False on failure.
2424 2424
  */
2425 2425
 function wp_delete_post( $postid = 0, $force_delete = false ) {
2426 2426
 	global $wpdb;
@@ -2678,7 +2678,7 @@  discard block
 block discarded – undo
2678 2678
  *
2679 2679
  * @global wpdb $wpdb WordPress database abstraction object.
2680 2680
  *
2681
- * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
2681
+ * @param integer $post Optional. Post ID or post object. Defaults to global $post.
2682 2682
  * @return mixed|void False on failure.
2683 2683
  */
2684 2684
 function wp_trash_post_comments( $post = null ) {
@@ -2734,8 +2734,8 @@  discard block
 block discarded – undo
2734 2734
  *
2735 2735
  * @global wpdb $wpdb WordPress database abstraction object.
2736 2736
  *
2737
- * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
2738
- * @return true|void
2737
+ * @param integer $post Optional. Post ID or post object. Defaults to global $post.
2738
+ * @return null|boolean
2739 2739
  */
2740 2740
 function wp_untrash_post_comments( $post = null ) {
2741 2741
 	global $wpdb;
@@ -4444,7 +4444,7 @@  discard block
 block discarded – undo
4444 4444
  * @since 1.5.0
4445 4445
  * @since 4.6.0 Converted the `$page` parameter to optional.
4446 4446
  *
4447
- * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
4447
+ * @param integer $page Optional. Page ID or WP_Post object. Default is global $post.
4448 4448
  * @return string|false Page URI, false on error.
4449 4449
  */
4450 4450
 function get_page_uri( $page = 0 ) {
@@ -5247,7 +5247,7 @@  discard block
 block discarded – undo
5247 5247
  *
5248 5248
  * @since 2.1.0
5249 5249
  *
5250
- * @param string|int $mime MIME type or attachment ID.
5250
+ * @param integer $mime MIME type or attachment ID.
5251 5251
  * @return string|false Icon, false otherwise.
5252 5252
  */
5253 5253
 function wp_mime_type_icon( $mime = 0 ) {
@@ -6149,7 +6149,7 @@  discard block
 block discarded – undo
6149 6149
  * @access private
6150 6150
  *
6151 6151
  * @param string $post_name Slug.
6152
- * @param string $post_ID   Optional. Post ID that should be ignored. Default 0.
6152
+ * @param integer $post_ID   Optional. Post ID that should be ignored. Default 0.
6153 6153
  */
6154 6154
 function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 ) {
6155 6155
 	$trashed_posts_with_desired_slug = get_posts( array(
Please login to merge, or discard this patch.
src/wp-includes/revision.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
  *
434 434
  * @see get_children()
435 435
  *
436
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
436
+ * @param integer $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
437 437
  * @param array|null  $args    Optional. Arguments for retrieving post revisions. Default null.
438 438
  * @return array An array of revisions, or an empty array if none.
439 439
  */
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
  * @since 4.6.0
586 586
  * @access private
587 587
  *
588
- * @param null|array|string $value    The value to return - a single metadata value, or an array of values.
588
+ * @param string $value    The value to return - a single metadata value, or an array of values.
589 589
  * @param int               $post_id  Post ID.
590 590
  * @param string            $meta_key Meta key.
591 591
  * @return null|array The default return value or the post thumbnail meta array.
Please login to merge, or discard this patch.
src/wp-includes/taxonomy.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
  *
1146 1146
  * @param int    $term_id    Term ID.
1147 1147
  * @param string $meta_key   Metadata name.
1148
- * @param mixed  $meta_value Optional. Metadata value. If provided, rows will only be removed that match the value.
1148
+ * @param string  $meta_value Optional. Metadata value. If provided, rows will only be removed that match the value.
1149 1149
  * @return bool True on success, false on failure.
1150 1150
  */
1151 1151
 function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) {
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
  *
1196 1196
  * @param int    $term_id    Term ID.
1197 1197
  * @param string $meta_key   Metadata key.
1198
- * @param mixed  $meta_value Metadata value.
1198
+ * @param string  $meta_value Metadata value.
1199 1199
  * @param mixed  $prev_value Optional. Previous value to check before removing.
1200 1200
  * @return int|WP_Error|bool Meta ID if the key didn't previously exist. True on successful update.
1201 1201
  *                           WP_Error when term_id is ambiguous between taxonomies. False on failure.
@@ -1576,7 +1576,7 @@  discard block
 block discarded – undo
1576 1576
  * @param string       $taxonomy Taxonomy name.
1577 1577
  * @param array|string $args     Optional. Array of arguments that get passed to get_terms().
1578 1578
  *                               Default empty array.
1579
- * @return array|int|WP_Error Number of terms in that taxonomy or WP_Error if the taxonomy does not exist.
1579
+ * @return string Number of terms in that taxonomy or WP_Error if the taxonomy does not exist.
1580 1580
  */
1581 1581
 function wp_count_terms( $taxonomy, $args = array() ) {
1582 1582
 	$defaults = array('hide_empty' => false);
@@ -2348,7 +2348,7 @@  discard block
 block discarded – undo
2348 2348
  *
2349 2349
  * @param int              $object_id The ID of the object to which the terms will be added.
2350 2350
  * @param string|int|array $terms     The slug(s) or ID(s) of the term(s) to add.
2351
- * @param array|string     $taxonomy  Taxonomy name.
2351
+ * @param string     $taxonomy  Taxonomy name.
2352 2352
  * @return array|WP_Error Term taxonomy IDs of the affected terms.
2353 2353
  */
2354 2354
 function wp_add_object_terms( $object_id, $terms, $taxonomy ) {
@@ -2877,7 +2877,7 @@  discard block
 block discarded – undo
2877 2877
  *
2878 2878
  * @param array  $terms    The term_taxonomy_id of terms to update.
2879 2879
  * @param string $taxonomy The context of the term.
2880
- * @return true Always true when complete.
2880
+ * @return boolean Always true when complete.
2881 2881
  */
2882 2882
 function wp_update_term_count_now( $terms, $taxonomy ) {
2883 2883
 	$terms = array_map('intval', $terms);
@@ -3973,7 +3973,7 @@  discard block
 block discarded – undo
3973 3973
  *
3974 3974
  * @since 2.5.0
3975 3975
  *
3976
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3976
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3977 3977
  * @param array $args {
3978 3978
  *     Optional. Arguments about how to format the list of taxonomies. Default empty array.
3979 3979
  *
@@ -4035,7 +4035,7 @@  discard block
 block discarded – undo
4035 4035
  *
4036 4036
  * @since 2.5.0
4037 4037
  *
4038
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
4038
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
4039 4039
  * @return array An array of all taxonomy names for the given post.
4040 4040
  */
4041 4041
 function get_post_taxonomies( $post = 0 ) {
Please login to merge, or discard this patch.
src/wp-includes/user.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
  *
292 292
  * @since 3.7.0
293 293
  *
294
- * @param WP_User|WP_Error|null $user WP_User or WP_Error object from a previous callback. Default null.
294
+ * @param WP_User $user WP_User or WP_Error object from a previous callback. Default null.
295 295
  * @return WP_User|WP_Error WP_User on success, WP_Error if the user is considered a spammer.
296 296
  */
297 297
 function wp_authenticate_spam_check( $user ) {
@@ -384,9 +384,9 @@  discard block
 block discarded – undo
384 384
  * @global wpdb $wpdb WordPress database abstraction object.
385 385
  *
386 386
  * @param array        $users       Array of user IDs.
387
- * @param string|array $post_type   Optional. Single post type or array of post types to check. Defaults to 'post'.
387
+ * @param string $post_type   Optional. Single post type or array of post types to check. Defaults to 'post'.
388 388
  * @param bool         $public_only Optional. Only return counts for public posts.  Defaults to false.
389
- * @return array Amount of posts each user has written.
389
+ * @return WP_User Amount of posts each user has written.
390 390
  */
391 391
 function count_many_users_posts( $users, $post_type = 'post', $public_only = false ) {
392 392
 	global $wpdb;
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
  *
779 779
  * @param int    $user_id    User ID
780 780
  * @param string $meta_key   Metadata name.
781
- * @param mixed  $meta_value Optional. Metadata value.
781
+ * @param string  $meta_value Optional. Metadata value.
782 782
  * @return bool True on success, false on failure.
783 783
  */
784 784
 function delete_user_meta($user_id, $meta_key, $meta_value = '') {
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
  * @since 3.0.0
1255 1255
  *
1256 1256
  * @param object|WP_User $user User object to be cached
1257
- * @return bool|null Returns false on failure.
1257
+ * @return false|null Returns false on failure.
1258 1258
  */
1259 1259
 function update_user_caches( $user ) {
1260 1260
 	if ( $user instanceof WP_User ) {
Please login to merge, or discard this patch.