WordPress.org

Make WordPress Core

Ticket #3525: pre_remote_source.patch

File pre_remote_source.patch, 500 bytes (added by tenpura, 9 years ago)

Patch for trunk

  • xmlrpc.php

     
    11991199                if ( !$linea ) 
    12001200                        return new IXR_Error(16, 'The source URL does not exist.'); 
    12011201 
     1202                $linea = apply_filters('pre_remote_source', $linea, $pagelinkedto); 
     1203 
    12021204                // Work around bug in strip_tags(): 
    12031205                $linea = str_replace('<!DOC', '<DOC', $linea); 
    12041206                $linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces