mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
Re fixes #1541
git-svn-id: http://svn.automattic.com/wordpress/branches/1.5@2778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5c9f3e85c
commit
16db18f5f6
@ -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 ) . ' [...]';
|
||||
|
Loading…
Reference in New Issue
Block a user