Make WordPress Core

Ticket #5213: atom-autodiscovery.patch

File atom-autodiscovery.patch, 2.0 KB (added by rubys, 15 years ago)

update patch based on suggestion from Elias Torres

  • wp-includes/general-template.php

     
    827827
    828828function rsd_link() {
    829829        echo '  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
     830        echo '  <link rel="service" type="application/atomsvc+xml" title="AtomPub" href="' . get_bloginfo('wpurl') . "/wp-app.php/service\" />\n";
    830831}
    831832
    832833function wlwmanifest_link() {
  • xmlrpc.php

     
    3232      <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" />
    3333      <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" />
    3434      <api name="Blogger" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" />
     35      <api name="Atom" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/wp-app.php/service" />
    3536    </apis>
    3637  </service>
    3738</rsd>
  • wp-content/themes/classic/header.php

     
    1212
    1313        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    1414        <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    15         <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
     15        <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>" />
    1616
    1717        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    1818        <?php wp_get_archives('type=monthly&format=link'); ?>