XML-RPC: Avoid a PHP notice in pingback_ping() method.
props jesin, simonp303. fixes #29177. Built from https://develop.svn.wordpress.org/trunk@29464 git-svn-id: http://core.svn.wordpress.org/trunk@29242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e75033f21b
commit
871d808588
|
@ -5759,7 +5759,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$urltest = parse_url($pagelinkedto);
|
||||
if ( $post_ID = url_to_postid($pagelinkedto) ) {
|
||||
$way = 'url_to_postid()';
|
||||
} elseif ( preg_match('#p/[0-9]{1,}#', $urltest['path'], $match) ) {
|
||||
} elseif ( isset( $urltest['path'] ) && preg_match('#p/[0-9]{1,}#', $urltest['path'], $match) ) {
|
||||
// the path defines the post_ID (archives/p/XXXX)
|
||||
$blah = explode('/', $match[0]);
|
||||
$post_ID = (int) $blah[1];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.0-beta3-20140810';
|
||||
$wp_version = '4.0-beta3-20140811';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue