From f700ac60752ce5b2cf337c715bdf3af5441633cb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 10 Mar 2018 02:01:29 +0000 Subject: [PATCH] Docs: Use `WP_Term` instead of generic `object` type for the `$tag` parameter in `wp-admin/edit-tag-form.php` hook docs. Props xhezairi, ocean90. Fixes #43507. Built from https://develop.svn.wordpress.org/trunk@42822 git-svn-id: http://core.svn.wordpress.org/trunk@42652 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tag-form.php | 36 ++++++++++++++++++------------------ wp-includes/version.php | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 9b29553c3a..3e0ce5791a 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -19,7 +19,7 @@ if ( 'category' == $taxonomy ) { * @since 2.1.0 * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * - * @param object $tag Current category term object. + * @param WP_Term $tag Current category term object. */ do_action( 'edit_category_form_pre', $tag ); } elseif ( 'link_category' == $taxonomy ) { @@ -29,7 +29,7 @@ if ( 'category' == $taxonomy ) { * @since 2.3.0 * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * - * @param object $tag Current link category term object. + * @param WP_Term $tag Current link category term object. */ do_action( 'edit_link_category_form_pre', $tag ); } else { @@ -39,7 +39,7 @@ if ( 'category' == $taxonomy ) { * @since 2.5.0 * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead. * - * @param object $tag Current tag term object. + * @param WP_Term $tag Current tag term object. */ do_action( 'edit_tag_form_pre', $tag ); } @@ -62,8 +62,8 @@ require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); * * @since 3.0.0 * - * @param object $tag Current taxonomy term object. - * @param string $taxonomy Current $taxonomy slug. + * @param WP_Term $tag Current taxonomy term object. + * @param string $taxonomy Current $taxonomy slug. */ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> @@ -113,8 +113,8 @@ wp_nonce_field( 'update-tag_' . $tag_ID ); * * @since 4.5.0 * - * @param object $tag Current taxonomy term object. - * @param string $taxonomy Current $taxonomy slug. + * @param WP_Term $tag Current taxonomy term object. + * @param string $taxonomy Current $taxonomy slug. */ do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy ); @@ -142,9 +142,9 @@ if ( isset( $tag->name ) ) { * @since 2.6.0 * @since 4.4.0 The `$tag` parameter was added. * - * @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 object|WP_Post $tag Term or WP_Post object. + * @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. */ $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; ?> @@ -195,7 +195,7 @@ if ( isset( $tag->name ) ) { * @since 2.9.0 * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * - * @param object $tag Current category term object. + * @param WP_Term $tag Current category term object. */ do_action( 'edit_category_form_fields', $tag ); } elseif ( 'link_category' == $taxonomy ) { @@ -205,7 +205,7 @@ if ( isset( $tag->name ) ) { * @since 2.9.0 * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * - * @param object $tag Current link category term object. + * @param WP_Term $tag Current link category term object. */ do_action( 'edit_link_category_form_fields', $tag ); } else { @@ -215,7 +215,7 @@ if ( isset( $tag->name ) ) { * @since 2.9.0 * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead. * - * @param object $tag Current tag term object. + * @param WP_Term $tag Current tag term object. */ do_action( 'edit_tag_form_fields', $tag ); } @@ -227,8 +227,8 @@ if ( isset( $tag->name ) ) { * * @since 3.0.0 * - * @param object $tag Current taxonomy term object. - * @param string $taxonomy Current taxonomy slug. + * @param WP_Term $tag Current taxonomy term object. + * @param string $taxonomy Current taxonomy slug. */ do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy ); ?> @@ -248,7 +248,7 @@ if ( 'category' == $taxonomy ) { * @since 2.5.0 * @deprecated 3.0.0 Use {$taxonomy}_edit_form instead. * - * @param object $tag Current taxonomy term object. + * @param WP_Term $tag Current taxonomy term object. */ do_action( 'edit_tag_form', $tag ); } @@ -259,8 +259,8 @@ if ( 'category' == $taxonomy ) { * * @since 3.0.0 * - * @param object $tag Current taxonomy term object. - * @param string $taxonomy Current taxonomy slug. + * @param WP_Term $tag Current taxonomy term object. + * @param string $taxonomy Current taxonomy slug. */ do_action( "{$taxonomy}_edit_form", $tag, $taxonomy ); ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index 40ee87d765..0e576064db 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42821'; +$wp_version = '5.0-alpha-42822'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.