Avoid 'Only variables should be passed by reference' notice on Widgets screen. props jdgrimes. fixes #25225.

git-svn-id: https://develop.svn.wordpress.org/trunk@25226 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-09-04 05:10:43 +00:00
parent d18ca83a2d
commit f913741b58

View File

@ -182,7 +182,8 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
if ( isset($_GET['addnew']) ) { if ( isset($_GET['addnew']) ) {
// Default to the first sidebar // Default to the first sidebar
$sidebar = array_shift( $keys = array_keys($wp_registered_sidebars) ); $keys = array_keys( $wp_registered_sidebars );
$sidebar = array_shift( $keys );
if ( isset($_GET['base']) && isset($_GET['num']) ) { // multi-widget if ( isset($_GET['base']) && isset($_GET['num']) ) { // multi-widget
// Copy minimal info from an existing instance of this widget to a new instance // Copy minimal info from an existing instance of this widget to a new instance