Make WordPress Core


Ignore:
Timestamp:
08/30/2012 01:33:00 PM (12 years ago)
Author:
ryan
Message:

Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r21651 r21664  
    32223222        $domain = $current_blog->domain;
    32233223        $path = $current_blog->path . 'xmlrpc.php';
    3224         $protocol = is_ssl() ? 'https' : 'http';
    3225 
    3226         $rpc = new IXR_Client("$protocol://{$domain}{$path}");
     3224
     3225        $rpc = new IXR_Client( set_url_scheme( "http://{$domain}{$path}" ) );
    32273226        $rpc->query('wp.getUsersBlogs', $args[1], $args[2]);
    32283227        $blogs = $rpc->getResponse();
Note: See TracChangeset for help on using the changeset viewer.