Make WordPress Core

Changeset 4144 for trunk/xmlrpc.php


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r4133 r4144  
    1313
    1414if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
    15 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
     15header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
    1616
    1717?>
    18 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
     18<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    1919<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
    2020  <service>
     
    191191      $struct = array(
    192192        'isAdmin'  => $is_admin,
    193         'url'      => get_settings('home') . '/',
     193        'url'      => get_option('home') . '/',
    194194        'blogid'   => '1',
    195         'blogName' => get_settings('blogname')
     195        'blogName' => get_option('blogname')
    196196      );
    197197
     
    330330
    331331      /* warning: here we make the assumption that the weblog's URL is on the same server */
    332       $filename = get_settings('home') . '/';
     332      $filename = get_option('home') . '/';
    333333      $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
    334334
     
    365365
    366366      /* warning: here we make the assumption that the weblog's URL is on the same server */
    367       $filename = get_settings('home') . '/';
     367      $filename = get_option('home') . '/';
    368368      $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
    369369
     
    545545
    546546      $comment_status = (empty($content_struct['mt_allow_comments'])) ?
    547         get_settings('default_comment_status')
     547        get_option('default_comment_status')
    548548        : $content_struct['mt_allow_comments'];
    549549
    550550      $ping_status = (empty($content_struct['mt_allow_pings'])) ?
    551         get_settings('default_ping_status')
     551        get_option('default_ping_status')
    552552        : $content_struct['mt_allow_pings'];
    553553
     
    642642
    643643      $comment_status = (empty($content_struct['mt_allow_comments'])) ?
    644         get_settings('default_comment_status')
     644        get_option('default_comment_status')
    645645        : $content_struct['mt_allow_comments'];
    646646
    647647      $ping_status = (empty($content_struct['mt_allow_pings'])) ?
    648         get_settings('default_ping_status')
     648        get_option('default_ping_status')
    649649        : $content_struct['mt_allow_pings'];
    650650
     
    11121112
    11131113        // Check if the page linked to is in our site
    1114         $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_settings('home')));
     1114        $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_option('home')));
    11151115        if( !$pos1 )
    11161116            return new IXR_Error(0, 'Is there no link to us?');
Note: See TracChangeset for help on using the changeset viewer.