git-svn-id: http://svn.automattic.com/wordpress/trunk@2742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-03 00:30:40 +00:00
parent 12cd19ce22
commit 0e15d15f9b
1 changed files with 3 additions and 0 deletions

View File

@ -1243,6 +1243,9 @@ class wp_xmlrpc_server extends IXR_Server {
}
}
if ( empty($context) ) // URL pattern not found
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.');
$pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom);
$context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';