From 0a4af6d45cb6f060f4561e438f489a85aee48b42 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 18:29:15 +0000 Subject: [PATCH] In `wp-includes/class-wp-admin-bar.php`, `break` is unreachabled after `return`. See #27882. Built from https://develop.svn.wordpress.org/trunk@28318 git-svn-id: http://core.svn.wordpress.org/trunk@28146 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 050b0f1c0e..749e48de75 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -16,11 +16,10 @@ class WP_Admin_Bar { switch ( $name ) { case 'proto' : return is_ssl() ? 'https://' : 'http://'; - break; + case 'menu' : _deprecated_argument( 'WP_Admin_Bar', '3.3', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the menu property.' ); return array(); // Sorry, folks. - break; } }