@@ -876,7 +876,7 @@ |
||
876 | 876 | * |
877 | 877 | * @global WP_Filesystem_Base $wp_filesystem Subclass |
878 | 878 | * |
879 | - * @param array|false $args Optional. Connection args, These are passed directly to |
|
879 | + * @param boolean $args Optional. Connection args, These are passed directly to |
|
880 | 880 | * the `WP_Filesystem_*()` classes. Default false. |
881 | 881 | * @param string|false $context Optional. Context for get_filesystem_method(). Default false. |
882 | 882 | * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. |
@@ -384,7 +384,7 @@ |
||
384 | 384 | * @ignore |
385 | 385 | * @param resource $img Image resource. |
386 | 386 | * @param float|int $angle Image rotation angle, in degrees. |
387 | - * @return resource|false GD image resource, false otherwise. |
|
387 | + * @return resource GD image resource, false otherwise. |
|
388 | 388 | */ |
389 | 389 | function _rotate_image_resource($img, $angle) { |
390 | 390 | _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) ); |
@@ -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( |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * |
225 | 225 | * @global WP_Rewrite $wp_rewrite |
226 | 226 | * |
227 | - * @return bool True if web.config was updated successfully |
|
227 | + * @return null|boolean True if web.config was updated successfully |
|
228 | 228 | */ |
229 | 229 | function iis7_save_url_rewrite_rules(){ |
230 | 230 | if ( is_multisite() ) |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * |
299 | 299 | * @since 2.0.0 |
300 | 300 | * |
301 | - * @param array $vars An array of globals to reset. |
|
301 | + * @param string[] $vars An array of globals to reset. |
|
302 | 302 | */ |
303 | 303 | function wp_reset_vars( $vars ) { |
304 | 304 | foreach ( $vars as $var ) { |
@@ -751,7 +751,7 @@ |
||
751 | 751 | * @global int $wp_db_version The version number of the database. |
752 | 752 | * @global string $pagenow |
753 | 753 | * |
754 | - * @return false False if the current user is not a super admin. |
|
754 | + * @return false|null False if the current user is not a super admin. |
|
755 | 755 | */ |
756 | 756 | function site_admin_notice() { |
757 | 757 | global $wp_db_version, $pagenow; |
@@ -999,7 +999,7 @@ |
||
999 | 999 | * |
1000 | 1000 | * @param int|string $nav_menu_selected_id (id, slug, or name ) of the currently-selected menu |
1001 | 1001 | * @param string $nav_menu_selected_title Title of the currently-selected menu |
1002 | - * @return array $messages The menu updated message |
|
1002 | + * @return string[] $messages The menu updated message |
|
1003 | 1003 | */ |
1004 | 1004 | function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) { |
1005 | 1005 | $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) ); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param bool $markup Optional. If the returned data should have HTML markup applied. |
52 | 52 | * Default true. |
53 | 53 | * @param bool $translate Optional. If the returned data should be translated. Default true. |
54 | - * @return array { |
|
54 | + * @return string { |
|
55 | 55 | * Plugin data. Values will be empty if not supplied by the plugin. |
56 | 56 | * |
57 | 57 | * @type string $Name Name of the plugin. Should be unique. |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * @since 2.8.0 |
189 | 189 | * |
190 | 190 | * @param string $plugin Plugin ID |
191 | - * @return array List of files relative to the plugin root. |
|
191 | + * @return string[] List of files relative to the plugin root. |
|
192 | 192 | */ |
193 | 193 | function get_plugin_files($plugin) { |
194 | 194 | $plugin_file = WP_PLUGIN_DIR . '/' . $plugin; |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | * |
768 | 768 | * @global WP_Filesystem_Base $wp_filesystem |
769 | 769 | * |
770 | - * @param array $plugins List of plugins to delete. |
|
770 | + * @param string[] $plugins List of plugins to delete. |
|
771 | 771 | * @param string $deprecated Deprecated. |
772 | 772 | * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure. |
773 | 773 | * Null if filesystem credentials are required to proceed. |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | * @since 2.7.0 |
986 | 986 | * |
987 | 987 | * @param string $plugin Relative plugin path from Plugin Directory. |
988 | - * @return true True if a plugin's uninstall.php file has been found and included. |
|
988 | + * @return boolean|null True if a plugin's uninstall.php file has been found and included. |
|
989 | 989 | */ |
990 | 990 | function uninstall_plugin($plugin) { |
991 | 991 | $file = plugin_basename($plugin); |
@@ -1505,6 +1505,7 @@ discard block |
||
1505 | 1505 | * @global array $_wp_real_parent_file |
1506 | 1506 | * @global array $_wp_menu_nopriv |
1507 | 1507 | * @global array $_wp_submenu_nopriv |
1508 | + * @return string |
|
1508 | 1509 | */ |
1509 | 1510 | function get_admin_page_parent( $parent = '' ) { |
1510 | 1511 | global $parent_file, $menu, $submenu, $pagenow, $typenow, |
@@ -1370,7 +1370,7 @@ |
||
1370 | 1370 | * @global array $_wp_additional_image_sizes |
1371 | 1371 | * |
1372 | 1372 | * @param int $thumbnail_id ID of the attachment used for thumbnail |
1373 | - * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1373 | + * @param integer $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1374 | 1374 | * @return string html |
1375 | 1375 | */ |
1376 | 1376 | function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { |
@@ -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 ) { |
@@ -1541,7 +1541,7 @@ discard block |
||
1541 | 1541 | * |
1542 | 1542 | * @since 2.7.0 |
1543 | 1543 | * |
1544 | - * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. |
|
1544 | + * @param integer $post Optional. Post ID or WP_Post object. Default is global $post. |
|
1545 | 1545 | * @return string The post title if set. |
1546 | 1546 | */ |
1547 | 1547 | function _draft_or_post_title( $post = 0 ) { |