@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * |
| 54 | 54 | * @see get_the_post_thumbnail() |
| 55 | 55 | * |
| 56 | - * @param string|array $size Optional. Image size to use. Accepts any valid image size, or |
|
| 56 | + * @param string $size Optional. Image size to use. Accepts any valid image size, or |
|
| 57 | 57 | * an array of width and height values in pixels (in that order). |
| 58 | 58 | * Default 'post-thumbnail'. |
| 59 | 59 | * @param string|array $attr Optional. Query string or array of attributes. Default empty. |
@@ -907,7 +907,7 @@ |
||
| 907 | 907 | * @since 4.4.0 |
| 908 | 908 | * @access protected |
| 909 | 909 | * |
| 910 | - * @return bool|string Boolean false or string error message. |
|
| 910 | + * @return false|string Boolean false or string error message. |
|
| 911 | 911 | */ |
| 912 | 912 | protected function get_json_last_error() { |
| 913 | 913 | // See https://core.trac.wordpress.org/ticket/27799. |
@@ -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 | * |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @since 1.5.0 |
| 18 | 18 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 19 | 19 | * |
| 20 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to retrieve the author. |
|
| 20 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to retrieve the author. |
|
| 21 | 21 | * Default current comment. |
| 22 | 22 | * @return string The comment author |
| 23 | 23 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @since 0.71 |
| 53 | 53 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 54 | 54 | * |
| 55 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author. |
|
| 55 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author. |
|
| 56 | 56 | * Default current comment. |
| 57 | 57 | */ |
| 58 | 58 | function comment_author( $comment_ID = 0 ) { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @since 1.5.0 |
| 78 | 78 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 79 | 79 | * |
| 80 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's email. |
|
| 80 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's email. |
|
| 81 | 81 | * Default current comment. |
| 82 | 82 | * @return string The current comment author's email |
| 83 | 83 | */ |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since 0.71 |
| 110 | 110 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 111 | 111 | * |
| 112 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's email. |
|
| 112 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's email. |
|
| 113 | 113 | * Default current comment. |
| 114 | 114 | */ |
| 115 | 115 | function comment_author_email( $comment_ID = 0 ) { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @since 1.5.0 |
| 210 | 210 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 211 | 211 | * |
| 212 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's link. |
|
| 212 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's link. |
|
| 213 | 213 | * Default current comment. |
| 214 | 214 | * @return string The comment author name or HTML link for author's URL. |
| 215 | 215 | */ |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * @since 0.71 |
| 244 | 244 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 245 | 245 | * |
| 246 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link. |
|
| 246 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link. |
|
| 247 | 247 | * Default current comment. |
| 248 | 248 | */ |
| 249 | 249 | function comment_author_link( $comment_ID = 0 ) { |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | * @since 1.5.0 |
| 257 | 257 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 258 | 258 | * |
| 259 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's IP address. |
|
| 259 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's IP address. |
|
| 260 | 260 | * Default current comment. |
| 261 | 261 | * @return string Comment author's IP address. |
| 262 | 262 | */ |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * @since 0.71 |
| 283 | 283 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 284 | 284 | * |
| 285 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's IP address. |
|
| 285 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's IP address. |
|
| 286 | 286 | * Default current comment. |
| 287 | 287 | */ |
| 288 | 288 | function comment_author_IP( $comment_ID = 0 ) { |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * @since 1.5.0 |
| 296 | 296 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 297 | 297 | * |
| 298 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's URL. |
|
| 298 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's URL. |
|
| 299 | 299 | * Default current comment. |
| 300 | 300 | * @return string Comment author URL. |
| 301 | 301 | */ |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | * @since 0.71 |
| 329 | 329 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 330 | 330 | * |
| 331 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's URL. |
|
| 331 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's URL. |
|
| 332 | 332 | * Default current comment. |
| 333 | 333 | */ |
| 334 | 334 | function comment_author_url( $comment_ID = 0 ) { |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | * Default empty. |
| 367 | 367 | * @param string $after Optional. The text or HTML to display after the email link. |
| 368 | 368 | * Default empty. |
| 369 | - * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. |
|
| 369 | + * @param integer $comment Optional. Comment ID or WP_Comment object. |
|
| 370 | 370 | * Default is the current comment. |
| 371 | 371 | * @return string The HTML link between the $before and $after parameters. |
| 372 | 372 | */ |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | * Default empty. |
| 405 | 405 | * @param string $after Optional. Text or HTML to display after the email link. |
| 406 | 406 | * Default empty. |
| 407 | - * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. |
|
| 407 | + * @param integer $comment Optional. Comment ID or WP_Comment object. |
|
| 408 | 408 | * Default is the current comment. |
| 409 | 409 | */ |
| 410 | 410 | function comment_author_url_link( $linktext = '', $before = '', $after = '', $comment = 0 ) { |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 533 | 533 | * |
| 534 | 534 | * @param string $d Optional. The format of the date. Default user's setting. |
| 535 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date. |
|
| 535 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the date. |
|
| 536 | 536 | * Default current comment. |
| 537 | 537 | * @return string The comment's date. |
| 538 | 538 | */ |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 562 | 562 | * |
| 563 | 563 | * @param string $d Optional. The format of the date. Default user's settings. |
| 564 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date. |
|
| 564 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the date. |
|
| 565 | 565 | * Default current comment. |
| 566 | 566 | */ |
| 567 | 567 | function comment_date( $d = '', $comment_ID = 0 ) { |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | * @since 1.5.0 |
| 579 | 579 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 580 | 580 | * |
| 581 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the excerpt. |
|
| 581 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the excerpt. |
|
| 582 | 582 | * Default current comment. |
| 583 | 583 | * @return string The maybe truncated comment with 20 words or less. |
| 584 | 584 | */ |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | * @since 1.2.0 |
| 625 | 625 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 626 | 626 | * |
| 627 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the excerpt. |
|
| 627 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the excerpt. |
|
| 628 | 628 | * Default current comment. |
| 629 | 629 | */ |
| 630 | 630 | function comment_excerpt( $comment_ID = 0 ) { |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | * |
| 796 | 796 | * @since 1.5.0 |
| 797 | 797 | * |
| 798 | - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
| 798 | + * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
| 799 | 799 | * @return string The link to the comments. |
| 800 | 800 | */ |
| 801 | 801 | function get_comments_link( $post_id = 0 ) { |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | * |
| 835 | 835 | * @since 1.5.0 |
| 836 | 836 | * |
| 837 | - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
| 837 | + * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
| 838 | 838 | * @return int The number of comments a post has. |
| 839 | 839 | */ |
| 840 | 840 | function get_comments_number( $post_id = 0 ) { |
@@ -922,7 +922,7 @@ discard block |
||
| 922 | 922 | * |
| 923 | 923 | * @see Walker_Comment::comment() |
| 924 | 924 | * |
| 925 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
| 925 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
| 926 | 926 | * Default current comment. |
| 927 | 927 | * @param array $args Optional. An array of arguments. Default empty. |
| 928 | 928 | * @return string The comment content. |
@@ -952,7 +952,7 @@ discard block |
||
| 952 | 952 | * |
| 953 | 953 | * @see Walker_Comment::comment() |
| 954 | 954 | * |
| 955 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
| 955 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
| 956 | 956 | * Default current comment. |
| 957 | 957 | * @param array $args Optional. An array of arguments. Default empty array. Default empty. |
| 958 | 958 | */ |
@@ -1025,7 +1025,7 @@ discard block |
||
| 1025 | 1025 | * @since 1.5.0 |
| 1026 | 1026 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
| 1027 | 1027 | * |
| 1028 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
| 1028 | + * @param integer $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
| 1029 | 1029 | * Default current comment. |
| 1030 | 1030 | * @return string The comment type. |
| 1031 | 1031 | */ |
@@ -481,7 +481,7 @@ |
||
| 481 | 481 | * |
| 482 | 482 | * @param WP_Post|int $post Post object or ID. |
| 483 | 483 | * @param int $width The requested width. |
| 484 | - * @return array|false Response data on success, false if post doesn't exist. |
|
| 484 | + * @return string Response data on success, false if post doesn't exist. |
|
| 485 | 485 | */ |
| 486 | 486 | function get_oembed_response_data( $post, $width ) { |
| 487 | 487 | $post = get_post( $post ); |