diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 8b5c61b164..b8d23402cd 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -11,7 +11,10 @@ if ( !defined('ABSPATH') ) die('-1'); if ( empty($tag_ID) ) { ?> -

+
+

labels->edit_item; ?>

+

+
labels->edit_item; + if ( ! isset( $_REQUEST['tag_ID'] ) ) { + break; + } + $tag_ID = (int) $_REQUEST['tag_ID']; $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' ); diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 2bf56a8630..ac117f7a52 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -574,7 +574,7 @@ function wp_admin_bar_edit_menu( $wp_admin_bar ) { ) ); } } elseif ( 'edit-tags' == $current_screen->base - && isset( $tag ) && is_object( $tag ) + && isset( $tag ) && is_object( $tag ) && ! is_wp_error( $tag ) && ( $tax = get_taxonomy( $tag->taxonomy ) ) && $tax->public ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 3ea5c921b6..976870b312 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35874'; +$wp_version = '4.5-alpha-35875'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.