Make WordPress Core


Ignore:
Timestamp:
07/04/2009 02:48:22 AM (16 years ago)
Author:
ryan
Message:

Add 'rpc' context to siteurl which obeys ADMIN and LOGIN forced SSL. see #10330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r11536 r11686  
    16941694    $orig_scheme = $scheme;
    16951695    if ( !in_array($scheme, array('http', 'https')) ) {
    1696         if ( ('login_post' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
     1696        if ( ( 'login_post' == $scheme || 'rpc' == $scheme ) && ( force_ssl_login() || force_ssl_admin() ) )
    16971697            $scheme = 'https';
    16981698        elseif ( ('login' == $scheme) && ( force_ssl_admin() ) )
Note: See TracChangeset for help on using the changeset viewer.