Make WordPress Core


Ignore:
Timestamp:
08/11/2014 03:18:08 PM (10 years ago)
Author:
SergeyBiryukov
Message:

XML-RPC: Avoid a PHP notice in pingback_ping() method.

props jesin, simonp303.
fixes #29177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r29255 r29464  
    57605760        if ( $post_ID = url_to_postid($pagelinkedto) ) {
    57615761            $way = 'url_to_postid()';
    5762         } elseif ( preg_match('#p/[0-9]{1,}#', $urltest['path'], $match) ) {
     5762        } elseif ( isset( $urltest['path'] ) && preg_match('#p/[0-9]{1,}#', $urltest['path'], $match) ) {
    57635763            // the path defines the post_ID (archives/p/XXXX)
    57645764            $blah = explode('/', $match[0]);
Note: See TracChangeset for help on using the changeset viewer.