From c16ae60debcd2ac6a1730d216c34bd7a76f31031 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 17 Oct 2020 16:05:09 +0000 Subject: [PATCH] Docs: Fix and upgrade various `object` docblock notations. See #50768 Built from https://develop.svn.wordpress.org/trunk@49183 git-svn-id: http://core.svn.wordpress.org/trunk@48945 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tag-form.php | 4 ++-- .../includes/class-wp-media-list-table.php | 6 ++--- .../includes/class-wp-ms-users-list-table.php | 6 ++--- .../includes/class-wp-posts-list-table.php | 6 ++--- wp-admin/includes/export.php | 12 +++++----- wp-admin/includes/media.php | 2 +- wp-admin/includes/meta-boxes.php | 20 ++++++++--------- wp-content/themes/twentyeleven/functions.php | 6 ++--- .../themes/twentyeleven/inc/theme-options.php | 2 +- .../twentynineteen/inc/template-functions.php | 2 +- wp-content/themes/twentyten/functions.php | 6 ++--- .../class-walker-category-dropdown.php | 12 +++++----- wp-includes/class-walker-category.php | 22 +++++++++---------- wp-includes/class-wp-xmlrpc-server.php | 18 +++++++-------- wp-includes/ms-blogs.php | 2 +- wp-includes/ms-load.php | 6 ++--- wp-includes/post-formats.php | 6 ++--- wp-includes/user.php | 20 ++++++++--------- wp-includes/version.php | 2 +- 19 files changed, 80 insertions(+), 80 deletions(-) diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 95f198884c..5e6ae119ac 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -138,7 +138,7 @@ if ( isset( $tag->name ) ) { name ) ) { * * @param string $slug The editable slug. Will be either a term slug or post URI depending * upon the context in which it is evaluated. - * @param WP_Term|WP_Post $tag Term or WP_Post object. + * @param WP_Term|WP_Post $tag Term or post object. */ $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; ?> diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index fdc26de6ea..e5988ed3c9 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -802,9 +802,9 @@ class WP_Media_List_Table extends WP_List_Table { * * @since 4.3.0 * - * @param object $post Attachment being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. + * @param WP_Post $post Attachment being acted upon. + * @param string $column_name Current column name. + * @param string $primary Primary column name. * @return string Row actions output for media attachments, or an empty string * if the current column is not the primary column. */ diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index 3b9670750d..8e1656ed6c 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -490,9 +490,9 @@ class WP_MS_Users_List_Table extends WP_List_Table { * * @since 4.3.0 * - * @param object $user User being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. + * @param WP_User $user User being acted upon. + * @param string $column_name Current column name. + * @param string $primary Primary column name. * @return string Row actions output for users in Multisite, or an empty string * if the current column is not the primary column. */ diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 8ebdcda031..08e2ff58ec 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -1321,9 +1321,9 @@ class WP_Posts_List_Table extends WP_List_Table { * * @since 4.3.0 * - * @param object $post Post being acted upon. - * @param string $column_name Current column name. - * @param string $primary Primary column name. + * @param WP_Post $post Post being acted upon. + * @param string $column_name Current column name. + * @param string $primary Primary column name. * @return string Row actions output for posts, or an empty string * if the current column is not the primary column. */ diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 92d84baa46..03b7f4ccfa 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -227,7 +227,7 @@ function export_wp( $args = array() ) { * * @since 2.1.0 * - * @param object $category Category Object + * @param WP_Term $category Category Object */ function wxr_cat_name( $category ) { if ( empty( $category->name ) ) { @@ -242,7 +242,7 @@ function export_wp( $args = array() ) { * * @since 2.1.0 * - * @param object $category Category Object + * @param WP_Term $category Category Object */ function wxr_category_description( $category ) { if ( empty( $category->description ) ) { @@ -257,7 +257,7 @@ function export_wp( $args = array() ) { * * @since 2.3.0 * - * @param object $tag Tag Object + * @param WP_Term $tag Tag Object */ function wxr_tag_name( $tag ) { if ( empty( $tag->name ) ) { @@ -272,7 +272,7 @@ function export_wp( $args = array() ) { * * @since 2.3.0 * - * @param object $tag Tag Object + * @param WP_Term $tag Tag Object */ function wxr_tag_description( $tag ) { if ( empty( $tag->description ) ) { @@ -287,7 +287,7 @@ function export_wp( $args = array() ) { * * @since 2.9.0 * - * @param object $term Term Object + * @param WP_Term $term Term Object */ function wxr_term_name( $term ) { if ( empty( $term->name ) ) { @@ -302,7 +302,7 @@ function export_wp( $args = array() ) { * * @since 2.9.0 * - * @param object $term Term Object + * @param WP_Term $term Term Object */ function wxr_term_description( $term ) { if ( empty( $term->description ) ) { diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 7990f0aec8..b23900961a 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2275,7 +2275,7 @@ function media_upload_form( $errors = null ) { * @since 2.5.0 * * @param string $type - * @param object $errors + * @param array $errors * @param int|WP_Error $id */ function media_upload_type_form( $type = 'file', $errors = null, $id = null ) { diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index eff0cde907..5d003d3210 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -385,7 +385,7 @@ function post_submit_meta_box( $post, $args = array() ) { * * @since 3.5.0 * - * @param object $post + * @param WP_Post $post */ function attachment_submit_meta_box( $post ) { ?> @@ -695,7 +695,7 @@ function post_categories_meta_box( $post, $box ) { * * @since 2.6.0 * - * @param object $post + * @param WP_Post $post */ function post_excerpt_meta_box( $post ) { ?> @@ -717,7 +717,7 @@ function post_excerpt_meta_box( $post ) { * * @since 2.6.0 * - * @param object $post + * @param WP_Post $post */ function post_trackback_meta_box( $post ) { $form_trackback = '