@@ -958,7 +958,7 @@ discard block |
||
958 | 958 | * @since 2.8.0 |
959 | 959 | * |
960 | 960 | * @param string $string The text which is to be decoded. |
961 | - * @param string|int $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
961 | + * @param integer $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
962 | 962 | * both single and double if set to ENT_QUOTES or |
963 | 963 | * none if set to ENT_NOQUOTES. |
964 | 964 | * Also compatible with old _wp_specialchars() values; |
@@ -3715,7 +3715,7 @@ discard block |
||
3715 | 3715 | * @since 2.8.1 |
3716 | 3716 | * @access private |
3717 | 3717 | * |
3718 | - * @param string|array $search The value being searched for, otherwise known as the needle. |
|
3718 | + * @param string[] $search The value being searched for, otherwise known as the needle. |
|
3719 | 3719 | * An array may be used to designate multiple needles. |
3720 | 3720 | * @param string $subject The string being searched and replaced on, otherwise known as the haystack. |
3721 | 3721 | * @return string The string with the replaced svalues. |
@@ -4381,7 +4381,6 @@ discard block |
||
4381 | 4381 | * @link https://secure.php.net/sprintf |
4382 | 4382 | * |
4383 | 4383 | * @param string $pattern The string which formatted args are inserted. |
4384 | - * @param mixed $args ,... Arguments to be formatted into the $pattern string. |
|
4385 | 4384 | * @return string The formatted string. |
4386 | 4385 | */ |
4387 | 4386 | function wp_sprintf( $pattern ) { |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | * |
698 | 698 | * @param int $id A blog ID. Can be null to refer to the current blog. |
699 | 699 | * @param string $option Name of option to add. Expected to not be SQL-escaped. |
700 | - * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped. |
|
700 | + * @param string $value Optional. Option value, can be anything. Expected to not be SQL-escaped. |
|
701 | 701 | * @return bool False if option was not added and true if option was added. |
702 | 702 | */ |
703 | 703 | function add_blog_option( $id, $option, $value ) { |
@@ -748,7 +748,7 @@ discard block |
||
748 | 748 | * |
749 | 749 | * @param int $id The blog id. |
750 | 750 | * @param string $option The option key. |
751 | - * @param mixed $value The option value. |
|
751 | + * @param string $value The option value. |
|
752 | 752 | * @param mixed $deprecated Not used. |
753 | 753 | * @return bool True on success, false on failure. |
754 | 754 | */ |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | * |
791 | 791 | * @param int $new_blog The id of the blog you want to switch to. Default: current blog |
792 | 792 | * @param bool $deprecated Deprecated argument |
793 | - * @return true Always returns True. |
|
793 | + * @return boolean Always returns True. |
|
794 | 794 | */ |
795 | 795 | function switch_to_blog( $new_blog, $deprecated = null ) { |
796 | 796 | global $wpdb, $wp_roles; |
@@ -43,7 +43,7 @@ |
||
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(); |
@@ -745,7 +745,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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) { |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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. |
@@ -72,6 +72,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -104,7 +104,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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' ) { |
@@ -473,7 +473,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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( |
@@ -433,7 +433,7 @@ discard block |
||
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 |
||
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. |