mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Squash a PHP notice in the XML-RPC server.
git-svn-id: https://develop.svn.wordpress.org/trunk@22560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f3fac2add3
commit
ebe8d3e08f
@ -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
Block a user