@@ -293,7 +293,7 @@ |
||
293 | 293 | * |
294 | 294 | * @since 4.0.0 |
295 | 295 | * |
296 | - * @return true Always true. |
|
296 | + * @return boolean Always true. |
|
297 | 297 | */ |
298 | 298 | public function active_callback() { |
299 | 299 | return true; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @since 4.3.0 |
43 | 43 | * @access public |
44 | 44 | * |
45 | - * @param object $manager An instance of the WP_Customize_Manager class. |
|
45 | + * @param WP_Customize_Manager $manager An instance of the WP_Customize_Manager class. |
|
46 | 46 | */ |
47 | 47 | public function __construct( $manager ) { |
48 | 48 | $this->previewed_menus = array(); |
@@ -1291,7 +1291,7 @@ discard block |
||
1291 | 1291 | * |
1292 | 1292 | * @param string $nav_menu_content The HTML content for the navigation menu. |
1293 | 1293 | * @param object $args An object containing wp_nav_menu() arguments. |
1294 | - * @return null |
|
1294 | + * @return string |
|
1295 | 1295 | */ |
1296 | 1296 | public function filter_wp_nav_menu( $nav_menu_content, $args ) { |
1297 | 1297 | if ( isset( $args->customize_preview_nav_menus_args['can_partial_refresh'] ) && $args->customize_preview_nav_menus_args['can_partial_refresh'] ) { |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | * |
458 | 458 | * @since 3.4.0 |
459 | 459 | * |
460 | - * @param mixed $offset |
|
460 | + * @param string $offset |
|
461 | 461 | * @return mixed |
462 | 462 | */ |
463 | 463 | public function offsetGet( $offset ) { |
@@ -1007,7 +1007,7 @@ discard block |
||
1007 | 1007 | * @since 3.4.0 |
1008 | 1008 | * @access public |
1009 | 1009 | * |
1010 | - * @param mixed $type Optional. Array of extensions to return. Defaults to all files (null). |
|
1010 | + * @param string $type Optional. Array of extensions to return. Defaults to all files (null). |
|
1011 | 1011 | * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite. |
1012 | 1012 | * @param bool $search_parent Optional. Whether to return parent files. Defaults to false. |
1013 | 1013 | * @return array Array of files, keyed by the path to the file relative to the theme's directory, with the values |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | * @access public |
1439 | 1439 | * @static |
1440 | 1440 | * |
1441 | - * @param string|array $stylesheets Stylesheet name or array of stylesheet names. |
|
1441 | + * @param string $stylesheets Stylesheet name or array of stylesheet names. |
|
1442 | 1442 | */ |
1443 | 1443 | public static function network_disable_theme( $stylesheets ) { |
1444 | 1444 | if ( ! is_multisite() ) { |
@@ -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 ) { |
@@ -3262,7 +3262,7 @@ discard block |
||
3262 | 3262 | * @type string $before_page_number A string to appear before the page number. Default empty. |
3263 | 3263 | * @type string $after_page_number A string to append after the page number. Default empty. |
3264 | 3264 | * } |
3265 | - * @return array|string|void String of page links or array of page links. |
|
3265 | + * @return string String of page links or array of page links. |
|
3266 | 3266 | */ |
3267 | 3267 | function paginate_links( $args = '' ) { |
3268 | 3268 | global $wp_query, $wp_rewrite; |
@@ -3423,7 +3423,7 @@ discard block |
||
3423 | 3423 | * @param string $key The unique key for this theme. |
3424 | 3424 | * @param string $name The name of the theme. |
3425 | 3425 | * @param string $url The URL of the CSS file containing the color scheme. |
3426 | - * @param array $colors Optional. An array of CSS color definition strings which are used |
|
3426 | + * @param string[] $colors Optional. An array of CSS color definition strings which are used |
|
3427 | 3427 | * to give the user a feel for the theme. |
3428 | 3428 | * @param array $icons { |
3429 | 3429 | * Optional. CSS color definitions used to color any SVG icons. |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * |
328 | 328 | * @param int $width Image width in pixels. |
329 | 329 | * @param int $height Image height in pixels. |
330 | - * @param bool|array $crop Optional. Whether to crop images to specified width and height or resize. |
|
330 | + * @param boolean $crop Optional. Whether to crop images to specified width and height or resize. |
|
331 | 331 | * An array can specify positioning of the crop area. Default false. |
332 | 332 | */ |
333 | 333 | function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) { |
@@ -1010,7 +1010,7 @@ discard block |
||
1010 | 1010 | * width and height values in pixels (in that order). Default 'medium'. |
1011 | 1011 | * @param array $image_meta Optional. The image meta data as returned by 'wp_get_attachment_metadata()'. |
1012 | 1012 | * Default null. |
1013 | - * @return string|bool A 'srcset' value string or false. |
|
1013 | + * @return false|string A 'srcset' value string or false. |
|
1014 | 1014 | */ |
1015 | 1015 | function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium', $image_meta = null ) { |
1016 | 1016 | if ( ! $image = wp_get_attachment_image_src( $attachment_id, $size ) ) { |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | * @param string $image_src The 'src' of the image. |
1040 | 1040 | * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. |
1041 | 1041 | * @param int $attachment_id Optional. The image attachment ID to pass to the filter. Default 0. |
1042 | - * @return string|bool The 'srcset' attribute value. False on error or when only one source exists. |
|
1042 | + * @return false|string The 'srcset' attribute value. False on error or when only one source exists. |
|
1043 | 1043 | */ |
1044 | 1044 | function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) { |
1045 | 1045 | /** |
@@ -3662,7 +3662,7 @@ discard block |
||
3662 | 3662 | * @since 3.6.0 |
3663 | 3663 | * |
3664 | 3664 | * @param string $type Mime type. |
3665 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. |
|
3665 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global $post. |
|
3666 | 3666 | * @return array Found attachments. |
3667 | 3667 | */ |
3668 | 3668 | function get_attached_media( $type, $post = 0 ) { |
@@ -3815,7 +3815,7 @@ discard block |
||
3815 | 3815 | * |
3816 | 3816 | * @since 3.6.0 |
3817 | 3817 | * |
3818 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. |
|
3818 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global $post. |
|
3819 | 3819 | * @param bool $html Optional. Whether to return HTML or data. Default is true. |
3820 | 3820 | * @return string|array Gallery data and srcs parsed from the expanded shortcode. |
3821 | 3821 | */ |
@@ -3842,7 +3842,7 @@ discard block |
||
3842 | 3842 | * |
3843 | 3843 | * @see get_post_galleries() |
3844 | 3844 | * |
3845 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. |
|
3845 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`. |
|
3846 | 3846 | * @return array A list of lists, each containing image srcs parsed. |
3847 | 3847 | * from an expanded shortcode |
3848 | 3848 | */ |
@@ -3858,7 +3858,7 @@ discard block |
||
3858 | 3858 | * |
3859 | 3859 | * @see get_post_gallery() |
3860 | 3860 | * |
3861 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. |
|
3861 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`. |
|
3862 | 3862 | * @return array A list of a gallery's image srcs in order. |
3863 | 3863 | */ |
3864 | 3864 | function get_post_gallery_images( $post = 0 ) { |
@@ -3941,7 +3941,7 @@ discard block |
||
3941 | 3941 | * |
3942 | 3942 | * @since 4.0.0 |
3943 | 3943 | * |
3944 | - * @return array The relevant CSS file URLs. |
|
3944 | + * @return string[] The relevant CSS file URLs. |
|
3945 | 3945 | */ |
3946 | 3946 | function wpview_media_sandbox_styles() { |
3947 | 3947 | $version = 'ver=' . get_bloginfo( 'version' ); |
@@ -790,7 +790,7 @@ |
||
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; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * |
66 | 66 | * @since 3.0.0 |
67 | 67 | * |
68 | - * @return true|string Returns true on success, or drop-in file to include. |
|
68 | + * @return boolean|string Returns true on success, or drop-in file to include. |
|
69 | 69 | */ |
70 | 70 | function ms_site_check() { |
71 | 71 |
@@ -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); |