Squash a PHP notice in the XML-RPC server.
git-svn-id: http://core.svn.wordpress.org/trunk@22560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1f045cdde
commit
ca7b159cc7
|
@ -5385,7 +5385,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$blah = explode('/', $match[0]);
|
||||
$post_ID = (int) $blah[1];
|
||||
$way = 'from the path';
|
||||
} elseif ( preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
|
||||
} elseif ( isset( $urltest['query'] ) && preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
|
||||
// the querystring defines the post_ID (?p=XXXX)
|
||||
$blah = explode('=', $match[0]);
|
||||
$post_ID = (int) $blah[1];
|
||||
|
|
Loading…
Reference in New Issue