mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Allow plugins to filter the fetched pingback source data. Fixes #3525 props tenpura.
git-svn-id: https://develop.svn.wordpress.org/trunk@7296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user