Make WordPress Core

Ticket #1541: xmlrpc.php_1.6-svn.diff

File xmlrpc.php_1.6-svn.diff, 528 bytes (added by markjaquith, 19 years ago)

Patch for 1.6 SVN

  • xmlrpc.php

     
    12431243                        }
    12441244                }
    12451245
     1246                if ( empty($context) ) {
     1247                        // URL pattern not found
     1248                        return new IXR_Error(17, 'The source URI does not contain a link to the target URI, and so cannot be used as a source.');
     1249                        }
     1250
    12461251                $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom);
    12471252
    12481253                $context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';