Ticket #29177: 29177.diff
File 29177.diff, 671 bytes (added by , 10 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
5759 5759 $urltest = parse_url($pagelinkedto); 5760 5760 if ( $post_ID = url_to_postid($pagelinkedto) ) { 5761 5761 $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) ) { 5763 5763 // the path defines the post_ID (archives/p/XXXX) 5764 5764 $blah = explode('/', $match[0]); 5765 5765 $post_ID = (int) $blah[1];