Fix a possible undefined offset warning in do_action. Fixes #11241 props chrisbliss18.
git-svn-id: https://develop.svn.wordpress.org/trunk@13674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b019acfbe
commit
c50eaee3d3
@ -321,7 +321,7 @@ function do_action($tag, $arg = '') {
|
||||
}
|
||||
|
||||
$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];
|
||||
else
|
||||
$args[] = $arg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user