Make WordPress Core

Ticket #1541: xmlrpc.php_1.5-branch.diff

File xmlrpc.php_1.5-branch.diff, 531 bytes (added by markjaquith, 19 years ago)

Patch for 1.5 branch

  • xmlrpc.php

     
    12511251                        }
    12521252                }
    12531253
     1254                if ( empty($context) ) {
     1255                        // URL pattern not found
     1256                        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.');
     1257                        }
     1258                       
    12541259                $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom);
    12551260
    12561261                $context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';