WordPress.org

Make WordPress Core

Changeset 17642


Ignore:
Timestamp:
04/17/11 07:48:34 (3 years ago)
Author:
westi
Message:

Don't do SSL discovery for every RSD request. APP endpoint already respects the SSLness of the site. Fixes #15960.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r17465 r17642  
    191191add_filter( 'editable_slug',        'urldecode'                           ); 
    192192add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object'    ); 
    193  
    194 // Atom SSL support 
    195 add_filter( 'atom_service_url','atom_service_url_filter' ); 
    196193 
    197194// Actions 
  • trunk/wp-includes/functions.php

    r17637 r17642  
    33243324 
    33253325/** 
    3326  * Secure URL, if available or the given URL. 
    3327  * 
    3328  * @since 2.5.0 
    3329  * 
    3330  * @param string $url Complete URL path with transport. 
    3331  * @return string Secure or regular URL path. 
    3332  */ 
    3333 function atom_service_url_filter($url) 
    3334 { 
    3335     if ( url_is_accessable_via_ssl($url) ) 
    3336         return preg_replace( '/^http:\/\//', 'https://',  $url ); 
    3337     else 
    3338         return $url; 
    3339 } 
    3340  
    3341 /** 
    33423326 * Marks a function as deprecated and informs when it has been used. 
    33433327 * 
  • trunk/xmlrpc.php

    r16221 r17642  
    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> 
Note: See TracChangeset for help on using the changeset viewer.