diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 531ea56282..7ddef7fc03 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -580,8 +580,8 @@ class WP_List_Table { * * @since 3.7.0 * - * @param object $months The months drop-down query results. - * @param string $post_type The post type. + * @param object[] $months Array of the months drop-down query results. + * @param string $post_type The post type. */ $months = apply_filters( 'months_dropdown_results', $months, $post_type ); diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index acd68d112f..08ca3781a0 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -219,8 +219,8 @@ function wp_nav_menu_post_type_meta_boxes() { * * @since 3.0.0 * - * @param object $meta_box_object The current object to add a menu items - * meta box for. + * @param WP_Post_Type|false $post_type The current object to add a menu items + * meta box for. */ $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type ); if ( $post_type ) { diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 0d925b4184..a733cf25ed 100644 --- a/wp-admin/my-sites.php +++ b/wp-admin/my-sites.php @@ -104,7 +104,7 @@ else : * @since MU (3.0.0) * * @param string $settings_html The settings HTML markup. Default empty. - * @param object $context Context of the setting (global or site-specific). Default 'global'. + * @param string $context Context of the setting (global or site-specific). Default 'global'. */ $settings_html = apply_filters( 'myblogs_options', '', 'global' ); if ( $settings_html != '' ) { diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index decf0b87cf..d65f82ad42 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -4569,7 +4569,7 @@ final class WP_Customize_Manager { * * @since 4.7.0 * - * @returns array Allowed URLs. + * @return array Allowed URLs. */ public function get_allowed_urls() { $allowed_urls = array( home_url( '/' ) ); @@ -5700,7 +5700,7 @@ final class WP_Customize_Manager { * * @since 4.7.0 * - * @returns bool Whether there are published (or to be published) pages. + * @return bool Whether there are published (or to be published) pages. */ public function has_published_pages() { diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php index 7e8198e0cc..e795de20cc 100644 --- a/wp-includes/class-wp-customize-nav-menus.php +++ b/wp-includes/class-wp-customize-nav-menus.php @@ -1282,7 +1282,7 @@ final class WP_Customize_Nav_Menus { * @since 4.7.0 * * @param array $value Post IDs. - * @returns array Post IDs. + * @return array Post IDs. */ public function sanitize_nav_menus_created_posts( $value ) { $post_ids = array(); diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 42f3ef2023..6f28e2bdb4 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1717,10 +1717,10 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null * * @since 2.7.0 * - * @param string $link The HTML markup for the comment reply link. - * @param array $args An array of arguments overriding the defaults. - * @param object $comment The object of the comment being replied. - * @param WP_Post $post The WP_Post object. + * @param string $link The HTML markup for the comment reply link. + * @param array $args An array of arguments overriding the defaults. + * @param WP_Comment $comment The object of the comment being replied. + * @param WP_Post $post The WP_Post object. */ return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post ); } @@ -1732,10 +1732,10 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null * * @see get_comment_reply_link() * - * @param array $args Optional. Override default options. - * @param int $comment Comment being replied to. Default current comment. - * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. - * Default current post. + * @param array $args Optional. Override default options. + * @param int|WP_Comment $comment Comment being replied to. Default current comment. + * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. + * Default current post. */ function comment_reply_link( $args = array(), $comment = null, $post = null ) { echo get_comment_reply_link( $args, $comment, $post ); diff --git a/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php b/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php index 1399a43edc..5a23086496 100644 --- a/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php +++ b/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php @@ -299,7 +299,7 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting { * @since 4.7.0 * * @param object $item Nav menu item. - * @returns string The type label. + * @return string The type label. */ protected function get_type_label( $item ) { if ( 'post_type' === $item->type ) { diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php index 822f5950ae..bc2a82e965 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php @@ -179,7 +179,7 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller { * * @since 4.7.0 * - * @param stdClass $taxonomy Taxonomy data. + * @param WP_Taxonomy $taxonomy Taxonomy data. * @param WP_REST_Request $request Full details about the request. * @return WP_REST_Response Response object. */ @@ -262,7 +262,7 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller { * @since 4.7.0 * * @param WP_REST_Response $response The response object. - * @param object $item The original taxonomy object. + * @param WP_Taxonomy $item The original taxonomy object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( 'rest_prepare_taxonomy', $response, $taxonomy, $request ); diff --git a/wp-includes/revision.php b/wp-includes/revision.php index fd66c73ded..802e3478fa 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -443,8 +443,8 @@ function wp_delete_post_revision( $revision_id ) { * * @since 2.6.0 * - * @param int $revision_id Post revision ID. - * @param object|array $revision Post revision object or array. + * @param int $revision_id Post revision ID. + * @param WP_Post $revision Post revision object. */ do_action( 'wp_delete_post_revision', $revision->ID, $revision ); } diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 06fb01e97d..199b022f83 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -3144,7 +3144,7 @@ function _wp_customize_publish_changeset( $new_status, $old_status, $changeset_p * * @param array $post_data An array of slashed post data. * @param array $supplied_post_data An array of sanitized, but otherwise unmodified post data. - * @returns array Filtered data. + * @return array Filtered data. */ function _wp_customize_changeset_filter_insert_post_data( $post_data, $supplied_post_data ) { if ( isset( $post_data['post_type'] ) && 'customize_changeset' === $post_data['post_type'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index ef0304d475..cb9a8ec8a1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46820'; +$wp_version = '5.4-alpha-46821'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-custom-html.php b/wp-includes/widgets/class-wp-widget-custom-html.php index 951cf4b02b..d628f51563 100644 --- a/wp-includes/widgets/class-wp-widget-custom-html.php +++ b/wp-includes/widgets/class-wp-widget-custom-html.php @@ -239,7 +239,6 @@ class WP_Widget_Custom_HTML extends WP_Widget { * * @see WP_Widget_Custom_HTML::render_control_template_scripts() * @param array $instance Current instance. - * @returns void */ public function form( $instance ) { $instance = wp_parse_args( (array) $instance, $this->default_instance );