@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * @since 2.0.0 |
117 | 117 | * @access public |
118 | 118 | * |
119 | - * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB. |
|
119 | + * @param integer $id User's ID, a WP_User object, or a user object from the DB. |
|
120 | 120 | * @param string $name Optional. User's username |
121 | 121 | * @param int $blog_id Optional Site ID, defaults to current site. |
122 | 122 | */ |
@@ -699,11 +699,6 @@ discard block |
||
699 | 699 | * @see map_meta_cap() |
700 | 700 | * |
701 | 701 | * @param string $cap Capability name. |
702 | - * @param int $object_id,... Optional. ID of the specific object to check against if `$cap` is a "meta" cap. |
|
703 | - * "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used |
|
704 | - * by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts', |
|
705 | - * 'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed |
|
706 | - * to map_meta_cap(). |
|
707 | 702 | * @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is |
708 | 703 | * passed, whether the current user has the given meta capability for the given object. |
709 | 704 | */ |
@@ -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 | * |
@@ -763,7 +763,7 @@ discard block |
||
763 | 763 | * @access protected |
764 | 764 | * |
765 | 765 | * @param string $date Date string to convert. |
766 | - * @return IXR_Date IXR_Date object. |
|
766 | + * @return integer IXR_Date object. |
|
767 | 767 | */ |
768 | 768 | protected function _convert_date( $date ) { |
769 | 769 | if ( $date === '0000-00-00 00:00:00' ) { |
@@ -779,7 +779,7 @@ discard block |
||
779 | 779 | * |
780 | 780 | * @param string $date_gmt WordPress GMT date string. |
781 | 781 | * @param string $date Date string. |
782 | - * @return IXR_Date IXR_Date object. |
|
782 | + * @return integer IXR_Date object. |
|
783 | 783 | */ |
784 | 784 | protected function _convert_date_gmt( $date_gmt, $date ) { |
785 | 785 | if ( $date !== '0000-00-00 00:00:00' && $date_gmt === '0000-00-00 00:00:00' ) { |
@@ -797,7 +797,7 @@ |
||
797 | 797 | * @access public |
798 | 798 | * |
799 | 799 | * @param string $subject subject |
800 | - * @param array $matches data used for substitution |
|
800 | + * @param string[] $matches data used for substitution |
|
801 | 801 | * @return string |
802 | 802 | */ |
803 | 803 | public static function apply($subject, $matches) { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * @since 2.1.0 |
271 | 271 | * @since 2.6.0 Moved from `WP_Scripts`. |
272 | 272 | * |
273 | - * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
273 | + * @param string $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
274 | 274 | * @return void |
275 | 275 | */ |
276 | 276 | public function remove( $handles ) { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @since 2.1.0 |
291 | 291 | * @since 2.6.0 Moved from `WP_Scripts`. |
292 | 292 | * |
293 | - * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
293 | + * @param string $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
294 | 294 | */ |
295 | 295 | public function enqueue( $handles ) { |
296 | 296 | foreach ( (array) $handles as $handle ) { |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * @since 2.1.0 |
314 | 314 | * @since 2.6.0 Moved from `WP_Scripts`. |
315 | 315 | * |
316 | - * @param mixed $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
316 | + * @param string $handles Item handle and argument (string) or item handles and arguments (array of strings). |
|
317 | 317 | */ |
318 | 318 | public function dequeue( $handles ) { |
319 | 319 | foreach ( (array) $handles as $handle ) { |
@@ -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 ) { |
@@ -943,7 +943,7 @@ discard block |
||
943 | 943 | * |
944 | 944 | * @see Walker_Comment::comment() |
945 | 945 | * |
946 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
946 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
947 | 947 | * Default current comment. |
948 | 948 | * @param array $args Optional. An array of arguments. Default empty. |
949 | 949 | * @return string The comment content. |
@@ -973,7 +973,7 @@ discard block |
||
973 | 973 | * |
974 | 974 | * @see Walker_Comment::comment() |
975 | 975 | * |
976 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
976 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
977 | 977 | * Default current comment. |
978 | 978 | * @param array $args Optional. An array of arguments. Default empty array. Default empty. |
979 | 979 | */ |
@@ -1046,7 +1046,7 @@ discard block |
||
1046 | 1046 | * @since 1.5.0 |
1047 | 1047 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
1048 | 1048 | * |
1049 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
1049 | + * @param integer $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
1050 | 1050 | * Default current comment. |
1051 | 1051 | * @return string The comment type. |
1052 | 1052 | */ |
@@ -976,7 +976,7 @@ discard block |
||
976 | 976 | * |
977 | 977 | * @global wpdb $wpdb WordPress database abstraction object. |
978 | 978 | * |
979 | - * @return array Maximum character length for the comment form fields. |
|
979 | + * @return string Maximum character length for the comment form fields. |
|
980 | 980 | */ |
981 | 981 | function wp_get_comment_fields_max_lengths() { |
982 | 982 | global $wpdb; |
@@ -1493,7 +1493,7 @@ discard block |
||
1493 | 1493 | * |
1494 | 1494 | * @since 2.0.4 |
1495 | 1495 | * |
1496 | - * @return array Comment author, email, url respectively. |
|
1496 | + * @return string Comment author, email, url respectively. |
|
1497 | 1497 | */ |
1498 | 1498 | function wp_get_current_commenter() { |
1499 | 1499 | // Cookies should already be sanitized. |
@@ -1559,7 +1559,7 @@ discard block |
||
1559 | 1559 | * new comment. |
1560 | 1560 | * @type int $user_id ID of the user who submitted the comment. Default 0. |
1561 | 1561 | * } |
1562 | - * @return int|false The new comment's ID on success, false on failure. |
|
1562 | + * @return string The new comment's ID on success, false on failure. |
|
1563 | 1563 | */ |
1564 | 1564 | function wp_insert_comment( $commentdata ) { |
1565 | 1565 | global $wpdb; |
@@ -2649,7 +2649,7 @@ discard block |
||
2649 | 2649 | * |
2650 | 2650 | * @param WP_Post $posts Post data object. |
2651 | 2651 | * @param WP_Query $query Query object. |
2652 | - * @return array |
|
2652 | + * @return WP_Post |
|
2653 | 2653 | */ |
2654 | 2654 | function _close_comments_for_old_posts( $posts, $query ) { |
2655 | 2655 | if ( empty( $posts ) || ! $query->is_singular() || ! get_option( 'close_comments_for_old_posts' ) ) |
@@ -366,7 +366,7 @@ |
||
366 | 366 | * |
367 | 367 | * @internal This is a compatibility function for PHP <5.5 |
368 | 368 | * |
369 | - * @return bool|string Returns the error message on success, "No Error" if no error has occurred, |
|
369 | + * @return false|string Returns the error message on success, "No Error" if no error has occurred, |
|
370 | 370 | * or false on failure. |
371 | 371 | */ |
372 | 372 | function json_last_error_msg() { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @since 4.5.0 |
79 | 79 | * @access public |
80 | 80 | * |
81 | - * @return array Partials. |
|
81 | + * @return WP_Customize_Partial[] Partials. |
|
82 | 82 | */ |
83 | 83 | public function partials() { |
84 | 84 | return $this->partials; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * @param string $errstr Error string. |
284 | 284 | * @param string $errfile Error file. |
285 | 285 | * @param string $errline Error line. |
286 | - * @return true Always true. |
|
286 | + * @return boolean Always true. |
|
287 | 287 | */ |
288 | 288 | public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) { |
289 | 289 | $this->triggered_errors[] = array( |