@@ -48,7 +48,7 @@ |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param string|array|WP_Error $data |
|
| 51 | + * @param string $data |
|
| 52 | 52 | */ |
| 53 | 53 | public function feedback( $data ) { |
| 54 | 54 | if ( is_wp_error( $data ) ) { |
@@ -204,7 +204,7 @@ |
||
| 204 | 204 | * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. |
| 205 | 205 | * @access public |
| 206 | 206 | * |
| 207 | - * @param array $plugins Array of the basename paths of the plugins' main files. |
|
| 207 | + * @param string[] $plugins Array of the basename paths of the plugins' main files. |
|
| 208 | 208 | * @param array $args { |
| 209 | 209 | * Optional. Other arguments for upgrading several plugins at once. Default empty array. |
| 210 | 210 | * |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * |
| 18 | 18 | * @param string $class The type of the list table, which is the class name. |
| 19 | 19 | * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'. |
| 20 | - * @return object|bool Object on success, false if the class does not exist. |
|
| 20 | + * @return string Object on success, false if the class does not exist. |
|
| 21 | 21 | */ |
| 22 | 22 | function _get_list_table( $class, $args = array() ) { |
| 23 | 23 | $core_classes = array( |
@@ -675,10 +675,10 @@ discard block |
||
| 675 | 675 | * |
| 676 | 676 | * @global WP_Locale $wp_locale |
| 677 | 677 | * |
| 678 | - * @param int|bool $edit Accepts 1|true for editing the date, 0|false for adding the date. |
|
| 679 | - * @param int|bool $for_post Accepts 1|true for applying the date to a post, 0|false for a comment. |
|
| 678 | + * @param integer $edit Accepts 1|true for editing the date, 0|false for adding the date. |
|
| 679 | + * @param integer $for_post Accepts 1|true for applying the date to a post, 0|false for a comment. |
|
| 680 | 680 | * @param int $tab_index The tabindex attribute to add. Default 0. |
| 681 | - * @param int|bool $multi Optional. Whether the additional fields and buttons should be added. |
|
| 681 | + * @param integer $multi Optional. Whether the additional fields and buttons should be added. |
|
| 682 | 682 | * Default 0|false. |
| 683 | 683 | */ |
| 684 | 684 | function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | * @staticvar bool $already_sorted |
| 985 | 985 | * @param string|WP_Screen $screen Screen identifier |
| 986 | 986 | * @param string $context box context |
| 987 | - * @param mixed $object gets passed to the box callback function as first parameter |
|
| 987 | + * @param string $object gets passed to the box callback function as first parameter |
|
| 988 | 988 | * @return int number of meta_boxes |
| 989 | 989 | */ |
| 990 | 990 | function do_meta_boxes( $screen, $context, $object ) { |
@@ -1533,7 +1533,7 @@ discard block |
||
| 1533 | 1533 | * |
| 1534 | 1534 | * @since 2.7.0 |
| 1535 | 1535 | * |
| 1536 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. |
|
| 1536 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global $post. |
|
| 1537 | 1537 | * @return string The post title if set. |
| 1538 | 1538 | */ |
| 1539 | 1539 | function _draft_or_post_title( $post = 0 ) { |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | * |
| 334 | 334 | * @param array $args Display arguments. See WP_Widget::widget() for information |
| 335 | 335 | * on accepted arguments. |
| 336 | - * @param int|array $widget_args { |
|
| 336 | + * @param integer $widget_args { |
|
| 337 | 337 | * Optional. Internal order number of the widget instance, or array of multi-widget arguments. |
| 338 | 338 | * Default 1. |
| 339 | 339 | * |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * @since 2.8.0 |
| 474 | 474 | * @access public |
| 475 | 475 | * |
| 476 | - * @param int|array $widget_args { |
|
| 476 | + * @param integer $widget_args { |
|
| 477 | 477 | * Optional. Internal order number of the widget instance, or array of multi-widget arguments. |
| 478 | 478 | * Default 1. |
| 479 | 479 | * |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @since 1.2.0 |
| 13 | 13 | * @since 4.4.0 Added the `$post` parameter. |
| 14 | 14 | * |
| 15 | - * @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 15 | + * @param integer $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 16 | 16 | */ |
| 17 | 17 | function the_permalink( $post = 0 ) { |
| 18 | 18 | /** |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @see get_permalink() |
| 99 | 99 | * |
| 100 | - * @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 100 | + * @param integer $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 101 | 101 | * @param bool $leavename Optional. Whether to keep post name or page name. Default false. |
| 102 | 102 | * |
| 103 | 103 | * @return string|false The permalink URL or false if post does not exist. |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @since 1.0.0 |
| 113 | 113 | * |
| 114 | - * @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 114 | + * @param integer $post Optional. Post ID or post object. Default is the global `$post`. |
|
| 115 | 115 | * @param bool $leavename Optional. Whether to keep post name or page name. Default false. |
| 116 | 116 | * @return string|false The permalink URL or false if post does not exist. |
| 117 | 117 | */ |
@@ -1387,7 +1387,7 @@ discard block |
||
| 1387 | 1387 | * |
| 1388 | 1388 | * @since 2.3.0 |
| 1389 | 1389 | * |
| 1390 | - * @param int|WP_Comment $comment_id Optional. Comment ID or WP_Comment object. |
|
| 1390 | + * @param integer $comment_id Optional. Comment ID or WP_Comment object. |
|
| 1391 | 1391 | * @return string|void The edit comment link URL for the given comment. |
| 1392 | 1392 | */ |
| 1393 | 1393 | function get_edit_comment_link( $comment_id = 0 ) { |
@@ -1447,7 +1447,7 @@ discard block |
||
| 1447 | 1447 | * |
| 1448 | 1448 | * @since 2.7.0 |
| 1449 | 1449 | * |
| 1450 | - * @param int|stdClass $link Optional. Bookmark ID. Default is the id of the current bookmark. |
|
| 1450 | + * @param integer $link Optional. Bookmark ID. Default is the id of the current bookmark. |
|
| 1451 | 1451 | * @return string|void The edit bookmark link URL. |
| 1452 | 1452 | */ |
| 1453 | 1453 | function get_edit_bookmark_link( $link = 0 ) { |
@@ -1545,7 +1545,7 @@ discard block |
||
| 1545 | 1545 | * @since 1.5.0 |
| 1546 | 1546 | * |
| 1547 | 1547 | * @param bool $in_same_term Optional. Whether post should be in a same taxonomy term. Default false. |
| 1548 | - * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty. |
|
| 1548 | + * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty. |
|
| 1549 | 1549 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'. |
| 1550 | 1550 | * @return null|string|WP_Post Post object if successful. Null if global $post is not set. Empty string if no |
| 1551 | 1551 | * corresponding post exists. |
@@ -1560,7 +1560,7 @@ discard block |
||
| 1560 | 1560 | * @since 1.5.0 |
| 1561 | 1561 | * |
| 1562 | 1562 | * @param bool $in_same_term Optional. Whether post should be in a same taxonomy term. Default false. |
| 1563 | - * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty. |
|
| 1563 | + * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default empty. |
|
| 1564 | 1564 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'. |
| 1565 | 1565 | * @return null|string|WP_Post Post object if successful. Null if global $post is not set. Empty string if no |
| 1566 | 1566 | * corresponding post exists. |
@@ -1873,7 +1873,7 @@ discard block |
||
| 1873 | 1873 | * |
| 1874 | 1874 | * @param bool $in_same_term Optional. Whether returned post should be in a same taxonomy term. |
| 1875 | 1875 | * Default false. |
| 1876 | - * @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. |
|
| 1876 | + * @param string $excluded_terms Optional. Array or comma-separated list of excluded term IDs. |
|
| 1877 | 1877 | * Default empty. |
| 1878 | 1878 | * @param bool $start Optional. Whether to retrieve first or last post. Default true |
| 1879 | 1879 | * @param string $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'. |
@@ -2761,7 +2761,7 @@ discard block |
||
| 2761 | 2761 | * @global WP_Rewrite $wp_rewrite |
| 2762 | 2762 | * |
| 2763 | 2763 | * @param string|array $args Optional args. See paginate_links(). Default empty array. |
| 2764 | - * @return string|void Markup for pagination links. |
|
| 2764 | + * @return string Markup for pagination links. |
|
| 2765 | 2765 | */ |
| 2766 | 2766 | function paginate_comments_links( $args = array() ) { |
| 2767 | 2767 | global $wp_rewrite; |
@@ -357,7 +357,7 @@ |
||
| 357 | 357 | * @param int $delta |
| 358 | 358 | * @param int $numpoints |
| 359 | 359 | * @param bool $firsttime |
| 360 | - * @return int New bias |
|
| 360 | + * @return double New bias |
|
| 361 | 361 | */ |
| 362 | 362 | protected static function adapt($delta, $numpoints, $firsttime) { |
| 363 | 363 | # function adapt(delta,numpoints,firsttime): |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * Returns false if $base is not absolute, otherwise an IRI. |
| 251 | 251 | * |
| 252 | - * @param IRI|string $base (Absolute) Base IRI |
|
| 252 | + * @param string $base (Absolute) Base IRI |
|
| 253 | 253 | * @param IRI|string $relative Relative IRI |
| 254 | 254 | * @return IRI|false |
| 255 | 255 | */ |
@@ -987,6 +987,7 @@ discard block |
||
| 987 | 987 | * Convert an IRI to a URI (or parts thereof) |
| 988 | 988 | * |
| 989 | 989 | * @param string|bool IRI to convert (or false from {@see get_iri}) |
| 990 | + * @param false|string $string |
|
| 990 | 991 | * @return string|false URI if IRI is valid, false otherwise. |
| 991 | 992 | */ |
| 992 | 993 | protected function to_uri($string) { |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * |
| 233 | 233 | * @param array $request Request data (same form as {@see request_multiple}) |
| 234 | 234 | * @param boolean $merge_options Should we merge options as well? |
| 235 | - * @return array Request data |
|
| 235 | + * @return string Request data |
|
| 236 | 236 | */ |
| 237 | 237 | protected function merge_request($request, $merge_options = true) { |
| 238 | 238 | if ($this->url !== null) { |