Changeset 8151 for branches/crazyhorse/xmlrpc.php
- Timestamp:
- 06/20/2008 09:27:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/xmlrpc.php
r8116 r8151 40 40 <homePageLink><?php bloginfo_rss('url') ?></homePageLink> 41 41 <apis> 42 <?php if ( get_option('enable_xmlrpc') ) :?> 42 43 <api name="WordPress" blogID="1" preferred="true" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" /> 43 44 <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" /> 44 45 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" /> 45 46 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php bloginfo_rss('wpurl') ?>/xmlrpc.php" /> 47 <?php endif; if ( get_option('enable_app') ) :?> 46 48 <api name="Atom" blogID="" preferred="false" apiLink="<?php echo apply_filters('atom_service_url', (get_bloginfo('url')."/wp-app.php/service"))?>" /> 49 <?php endif; ?> 47 50 </apis> 48 51 </service> … … 109 112 110 113 function wp_xmlrpc_server() { 111 $ this->methods = array(114 $xmlrpc_methods = array( 112 115 // WordPress API 113 116 'wp.getUsersBlogs' => 'this:wp_getUsersBlogs', … … 165 168 'mt.supportedTextFilters' => 'this:mt_supportedTextFilters', 166 169 'mt.getTrackbackPings' => 'this:mt_getTrackbackPings', 167 'mt.publishPost' => 'this:mt_publishPost', 168 170 'mt.publishPost' => 'this:mt_publishPost' 171 ); 172 173 $xmlrpc_functions = array ( 169 174 // PingBack 170 175 'pingback.ping' => 'this:pingback_ping', … … 175 180 ); 176 181 182 if ( get_option('enable_xmlrpc') ) 183 { 184 $this->methods = array_merge($xmlrpc_methods,$xmlrpc_functions); 185 } else { 186 $this->methods = $xmlrpc_functions; 187 } 188 177 189 $this->initialise_blog_option_info( ); 178 190 $this->methods = apply_filters('xmlrpc_methods', $this->methods);
Note: See TracChangeset
for help on using the changeset viewer.