Make WordPress Core

Ticket #15960: xmlrpc-app-rsd-fix.diff

File xmlrpc-app-rsd-fix.diff, 2.1 KB (added by westi, 14 years ago)

Remove this code.

  • wp-includes/default-filters.php

     
    187187add_filter( 'editable_slug',        'urldecode'                           );
    188188add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object'    );
    189189
    190 // Atom SSL support
    191 add_filter( 'atom_service_url','atom_service_url_filter' );
    192 
    193190// Actions
    194191add_action( 'wp_head',             'wp_enqueue_scripts',            1     );
    195192add_action( 'wp_head',             'feed_links',                    2     );
  • wp-includes/functions.php

     
    32423242}
    32433243
    32443244/**
    3245  * Secure URL, if available or the given URL.
    3246  *
    3247  * @since 2.5.0
    3248  *
    3249  * @param string $url Complete URL path with transport.
    3250  * @return string Secure or regular URL path.
    3251  */
    3252 function atom_service_url_filter($url)
    3253 {
    3254         if ( url_is_accessable_via_ssl($url) )
    3255                 return preg_replace( '/^http:\/\//', 'https://',  $url );
    3256         else
    3257                 return $url;
    3258 }
    3259 
    3260 /**
    32613245 * Marks a function as deprecated and informs when it has been used.
    32623246 *
    32633247 * There is a hook deprecated_function_run that will be called that can be used
  • xmlrpc.php

     
    4242      <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    4343      <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    4444      <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    45       <api name="Atom" blogID="" preferred="false" apiLink="<?php echo apply_filters('atom_service_url', site_url('wp-app.php/service', 'rpc') ) ?>" />
     45      <api name="Atom" blogID="" preferred="false" apiLink="<?php echo site_url('wp-app.php/service', 'rpc') ?>" />
    4646    </apis>
    4747  </service>
    4848</rsd>