Fix a possible undefined offset warning in do_action. Fixes #11241 props chrisbliss18.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f91e95f100
commit
c71c407fd2
|
@ -321,7 +321,7 @@ function do_action($tag, $arg = '') {
|
||||||
}
|
}
|
||||||
|
|
||||||
$args = array();
|
$args = array();
|
||||||
if ( is_array($arg) && 1 == count($arg) && is_object($arg[0]) ) // array(&$this)
|
if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
|
||||||
$args[] =& $arg[0];
|
$args[] =& $arg[0];
|
||||||
else
|
else
|
||||||
$args[] = $arg;
|
$args[] = $arg;
|
||||||
|
|
Loading…
Reference in New Issue