git-svn-id: http://svn.automattic.com/wordpress/branches/1.5@2778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-12 07:07:52 +00:00
parent d5c9f3e85c
commit 16db18f5f6

View File

@ -1251,6 +1251,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 ) . ' [...]';