Allow plugins to filter the fetched pingback source data. Fixes #3525 props tenpura.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-03-14 19:08:09 +00:00
parent 835d70399d
commit 062fc0b63a
1 changed files with 2 additions and 0 deletions

View File

@ -2253,6 +2253,8 @@ class wp_xmlrpc_server extends IXR_Server {
if ( !$linea )
return new IXR_Error(16, __('The source URL does not exist.'));
$linea = apply_filters('pre_remote_source', $linea, $pagelinkedto);
// Work around bug in strip_tags():
$linea = str_replace('<!DOC', '<DOC', $linea);
$linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces