WordPress.org

Make WordPress Core

Changeset 42228 for trunk/src/xmlrpc.php


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (23 months ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlrpc.php

    r42201 r42228  
    3434<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    3535<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
    36   <service>
    37     <engineName>WordPress</engineName>
    38     <engineLink>https://wordpress.org/</engineLink>
    39     <homePageLink><?php bloginfo_rss('url') ?></homePageLink>
    40     <apis>
    41       <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    42       <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    43       <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    44       <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
    45       <?php
    46       /**
    47       * Add additional APIs to the Really Simple Discovery (RSD) endpoint.
    48       *
    49       * @link http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
    50       *
    51       * @since 3.5.0
    52       */
    53       do_action( 'xmlrpc_rsd_apis' );
    54       ?>
    55     </apis>
    56   </service>
     36    <service>
     37        <engineName>WordPress</engineName>
     38        <engineLink>https://wordpress.org/</engineLink>
     39        <homePageLink><?php bloginfo_rss('url') ?></homePageLink>
     40        <apis>
     41            <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
     42            <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
     43            <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
     44            <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
     45            <?php
     46            /**
     47            * Add additional APIs to the Really Simple Discovery (RSD) endpoint.
     48            *
     49            * @link http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
     50            *
     51            * @since 3.5.0
     52            */
     53            do_action( 'xmlrpc_rsd_apis' );
     54            ?>
     55        </apis>
     56    </service>
    5757</rsd>
    5858<?php
Note: See TracChangeset for help on using the changeset viewer.