@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | |
485 | 485 | /** |
486 | 486 | * |
487 | - * @return array |
|
487 | + * @return string[] |
|
488 | 488 | */ |
489 | 489 | protected function get_table_classes() { |
490 | 490 | return array( 'widefat', 'fixed', 'striped', is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' ); |
@@ -1162,7 +1162,7 @@ discard block |
||
1162 | 1162 | * @since 4.3.0 |
1163 | 1163 | * @access protected |
1164 | 1164 | * |
1165 | - * @param object $post Post being acted upon. |
|
1165 | + * @param WP_Post $post Post being acted upon. |
|
1166 | 1166 | * @param string $column_name Current column name. |
1167 | 1167 | * @param string $primary Primary column name. |
1168 | 1168 | * @return string Row actions output for posts. |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param int $dst_h The destination height. |
21 | 21 | * @param int $src_abs Optional. If the source crop points are absolute. |
22 | 22 | * @param string $dst_file Optional. The destination file to write to. |
23 | - * @return string|WP_Error New filepath on success, WP_Error on failure. |
|
23 | + * @return string New filepath on success, WP_Error on failure. |
|
24 | 24 | */ |
25 | 25 | function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs = false, $dst_file = false ) { |
26 | 26 | $src_file = $src; |
@@ -1372,7 +1372,7 @@ |
||
1372 | 1372 | * @global array $_wp_additional_image_sizes |
1373 | 1373 | * |
1374 | 1374 | * @param int $thumbnail_id ID of the attachment used for thumbnail |
1375 | - * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1375 | + * @param integer $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1376 | 1376 | * @return string html |
1377 | 1377 | */ |
1378 | 1378 | function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { |
@@ -339,8 +339,8 @@ |
||
339 | 339 | * |
340 | 340 | * @since 3.4.0 |
341 | 341 | * |
342 | - * @param mixed $ajax_message AJAX return |
|
343 | - * @param mixed $message UI message |
|
342 | + * @param integer $ajax_message AJAX return |
|
343 | + * @param string $message UI message |
|
344 | 344 | */ |
345 | 345 | protected function wp_die( $ajax_message, $message = null ) { |
346 | 346 | if ( $this->doing_ajax() || isset( $_POST['customized'] ) ) { |
@@ -279,7 +279,7 @@ |
||
279 | 279 | * @param int $dst_h The destination height. |
280 | 280 | * @param string $filter_name Optional. The Imagick filter to use when resizing. Default 'FILTER_TRIANGLE'. |
281 | 281 | * @param bool $strip_meta Optional. Strip all profiles, excluding color profiles, from the image. Default true. |
282 | - * @return bool|WP_Error |
|
282 | + * @return null|WP_Error |
|
283 | 283 | */ |
284 | 284 | protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE', $strip_meta = true ) { |
285 | 285 | $allowed_filters = array( |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @param string $object_type Type of object whose meta is to be lazy-loaded. Accepts 'term' or 'comment'. |
76 | 76 | * @param array $object_ids Array of object IDs. |
77 | - * @return bool|WP_Error True on success, WP_Error on failure. |
|
77 | + * @return WP_Error|null True on success, WP_Error on failure. |
|
78 | 78 | */ |
79 | 79 | public function queue_objects( $object_type, $object_ids ) { |
80 | 80 | if ( ! isset( $this->settings[ $object_type ] ) ) { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * @access public |
116 | 116 | * |
117 | 117 | * @param string $object_type Object type. Accepts 'comment' or 'term'. |
118 | - * @return bool|WP_Error True on success, WP_Error on failure. |
|
118 | + * @return WP_Error|null True on success, WP_Error on failure. |
|
119 | 119 | */ |
120 | 120 | public function reset_queue( $object_type ) { |
121 | 121 | if ( ! isset( $this->settings[ $object_type ] ) ) { |
@@ -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 ) { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @since 1.5.0 |
202 | 202 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
203 | 203 | * |
204 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's link. |
|
204 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's link. |
|
205 | 205 | * Default current comment. |
206 | 206 | * @return string The comment author name or HTML link for author's URL. |
207 | 207 | */ |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | * @since 0.71 |
236 | 236 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
237 | 237 | * |
238 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link. |
|
238 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's link. |
|
239 | 239 | * Default current comment. |
240 | 240 | */ |
241 | 241 | function comment_author_link( $comment_ID = 0 ) { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * @since 1.5.0 |
249 | 249 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
250 | 250 | * |
251 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's IP address. |
|
251 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's IP address. |
|
252 | 252 | * Default current comment. |
253 | 253 | * @return string Comment author's IP address. |
254 | 254 | */ |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * @since 0.71 |
275 | 275 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
276 | 276 | * |
277 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's IP address. |
|
277 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's IP address. |
|
278 | 278 | * Default current comment. |
279 | 279 | */ |
280 | 280 | function comment_author_IP( $comment_ID = 0 ) { |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * @since 1.5.0 |
288 | 288 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
289 | 289 | * |
290 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's URL. |
|
290 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's URL. |
|
291 | 291 | * Default current comment. |
292 | 292 | * @return string Comment author URL. |
293 | 293 | */ |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * @since 0.71 |
316 | 316 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
317 | 317 | * |
318 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's URL. |
|
318 | + * @param integer $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's URL. |
|
319 | 319 | * Default current comment. |
320 | 320 | */ |
321 | 321 | function comment_author_url( $comment_ID = 0 ) { |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
514 | 514 | * |
515 | 515 | * @param string $d Optional. The format of the date. Default user's setting. |
516 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date. |
|
516 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the date. |
|
517 | 517 | * Default current comment. |
518 | 518 | * @return string The comment's date. |
519 | 519 | */ |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
543 | 543 | * |
544 | 544 | * @param string $d Optional. The format of the date. Default user's settings. |
545 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date. |
|
545 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the date. |
|
546 | 546 | * Default current comment. |
547 | 547 | */ |
548 | 548 | function comment_date( $d = '', $comment_ID = 0 ) { |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | * @since 1.5.0 |
560 | 560 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
561 | 561 | * |
562 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the excerpt. |
|
562 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the excerpt. |
|
563 | 563 | * Default current comment. |
564 | 564 | * @return string The maybe truncated comment with 20 words or less. |
565 | 565 | */ |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | * @since 1.2.0 |
606 | 606 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
607 | 607 | * |
608 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the excerpt. |
|
608 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the excerpt. |
|
609 | 609 | * Default current comment. |
610 | 610 | */ |
611 | 611 | function comment_excerpt( $comment_ID = 0 ) { |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | * |
776 | 776 | * @since 1.5.0 |
777 | 777 | * |
778 | - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
778 | + * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
779 | 779 | * @return string The link to the comments. |
780 | 780 | */ |
781 | 781 | function get_comments_link( $post_id = 0 ) { |
@@ -814,7 +814,7 @@ discard block |
||
814 | 814 | * |
815 | 815 | * @since 1.5.0 |
816 | 816 | * |
817 | - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
817 | + * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post. |
|
818 | 818 | * @return int The number of comments a post has. |
819 | 819 | */ |
820 | 820 | function get_comments_number( $post_id = 0 ) { |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | * |
903 | 903 | * @see Walker_Comment::comment() |
904 | 904 | * |
905 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
905 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to get the text. |
|
906 | 906 | * Default current comment. |
907 | 907 | * @param array $args Optional. An array of arguments. Default empty. |
908 | 908 | * @return string The comment content. |
@@ -932,7 +932,7 @@ discard block |
||
932 | 932 | * |
933 | 933 | * @see Walker_Comment::comment() |
934 | 934 | * |
935 | - * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
935 | + * @param integer $comment_ID WP_Comment or ID of the comment for which to print the text. |
|
936 | 936 | * Default current comment. |
937 | 937 | * @param array $args Optional. An array of arguments. Default empty array. Default empty. |
938 | 938 | */ |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | * @since 1.5.0 |
1006 | 1006 | * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. |
1007 | 1007 | * |
1008 | - * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
1008 | + * @param integer $comment_ID Optional. WP_Comment or ID of the comment for which to get the type. |
|
1009 | 1009 | * Default current comment. |
1010 | 1010 | * @return string The comment type. |
1011 | 1011 | */ |
@@ -978,7 +978,7 @@ discard block |
||
978 | 978 | * |
979 | 979 | * @global wpdb $wpdb WordPress database abstraction object. |
980 | 980 | * |
981 | - * @return array Maximum character length for the comment form fields. |
|
981 | + * @return string Maximum character length for the comment form fields. |
|
982 | 982 | */ |
983 | 983 | function wp_get_comment_fields_max_lengths() { |
984 | 984 | global $wpdb; |
@@ -1492,7 +1492,7 @@ discard block |
||
1492 | 1492 | * |
1493 | 1493 | * @since 2.0.4 |
1494 | 1494 | * |
1495 | - * @return array Comment author, email, url respectively. |
|
1495 | + * @return string Comment author, email, url respectively. |
|
1496 | 1496 | */ |
1497 | 1497 | function wp_get_current_commenter() { |
1498 | 1498 | // Cookies should already be sanitized. |
@@ -1558,7 +1558,7 @@ discard block |
||
1558 | 1558 | * new comment. |
1559 | 1559 | * @type int $user_id ID of the user who submitted the comment. Default 0. |
1560 | 1560 | * } |
1561 | - * @return int|false The new comment's ID on success, false on failure. |
|
1561 | + * @return string The new comment's ID on success, false on failure. |
|
1562 | 1562 | */ |
1563 | 1563 | function wp_insert_comment( $commentdata ) { |
1564 | 1564 | global $wpdb; |
@@ -2644,7 +2644,7 @@ discard block |
||
2644 | 2644 | * |
2645 | 2645 | * @param WP_Post $posts Post data object. |
2646 | 2646 | * @param WP_Query $query Query object. |
2647 | - * @return array |
|
2647 | + * @return WP_Post |
|
2648 | 2648 | */ |
2649 | 2649 | function _close_comments_for_old_posts( $posts, $query ) { |
2650 | 2650 | if ( empty( $posts ) || ! $query->is_singular() || ! get_option( 'close_comments_for_old_posts' ) ) |
@@ -274,7 +274,7 @@ |
||
274 | 274 | * |
275 | 275 | * @param WP_Customize_Partial $partial Partial. |
276 | 276 | * @param array $context Context. |
277 | - * @return string|array|false |
|
277 | + * @return boolean |
|
278 | 278 | */ |
279 | 279 | public function render_callback( WP_Customize_Partial $partial, $context = array() ) { |
280 | 280 | unset( $partial, $context ); |