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
This commit is contained in:
parent
5bd852c262
commit
0a4af6d45c
|
@ -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 <code>menu</code> property.' );
|
||||
return array(); // Sorry, folks.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue