Make WordPress Core


Ignore:
Timestamp:
11/13/2012 10:35:41 PM (12 years ago)
Author:
markjaquith
Message:

Squash a PHP notice in the XML-RPC server.

File:
1 edited

Legend:

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

    r22368 r22560  
    53865386            $post_ID = (int) $blah[1];
    53875387            $way = 'from the path';
    5388         } elseif ( preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
     5388        } elseif ( isset( $urltest['query'] ) && preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
    53895389            // the querystring defines the post_ID (?p=XXXX)
    53905390            $blah = explode('=', $match[0]);
Note: See TracChangeset for help on using the changeset viewer.