Replace faulty regex. Props tenpura. fixes #4820
git-svn-id: http://svn.automattic.com/wordpress/trunk@6127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c352f29893
commit
39152aff25
|
@ -1840,7 +1840,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$title = '';
|
||||
|
||||
$pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
|
||||
$pagelinkedto = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedto);
|
||||
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
||||
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
||||
|
||||
$error_code = -1;
|
||||
|
||||
|
@ -1966,7 +1967,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
if ( empty($context) ) // Link to target not found
|
||||
return new IXR_Error(17, __('The source URL does not contain a link to the target URL, and so cannot be used as a source.'));
|
||||
|
||||
$pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom);
|
||||
$pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
|
||||
|
||||
$context = '[...] ' . wp_specialchars( $excerpt ) . ' [...]';
|
||||
$original_pagelinkedfrom = $pagelinkedfrom;
|
||||
|
|
Loading…
Reference in New Issue