Changeset 3009
- Timestamp:
- 11/07/2005 09:47:51 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-filters.php
r2896 r3009 84 84 // Actions 85 85 add_action('publish_post', 'generic_ping'); 86 add_action('wp_head', 'rsd_link'); 86 87 87 88 ?> -
trunk/wp-includes/template-functions-general.php
r2952 r3009 654 654 } 655 655 656 function rsd_link() { 657 echo '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('url') . "/xmlrpc.php?rsd\" />\n"; 658 } 659 656 660 ?> -
trunk/xmlrpc.php
r2983 r3009 5 5 6 6 include('./wp-config.php'); 7 8 if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd 9 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); 10 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?> 13 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> 14 <service> 15 <engineName>WordPress</engineName> 16 <engineLink>http://wordpress.org/</engineLink> 17 <homePageLink><?php bloginfo_rss('url') ?></homePageLink> 18 <apis> 19 <api name="Movable Type" blogID="1" preferred="true" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" /> 20 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" /> 21 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('url') ?>/xmlrpc.php" /> 22 </apis> 23 </service> 24 </rsd> 25 <?php 26 exit; 27 } 28 7 29 include_once(ABSPATH . WPINC . '/class-IXR.php'); 8 30
Note: See TracChangeset
for help on using the changeset viewer.