Ticket #21866: atom.diff
File atom.diff, 10.6 KB (added by , 12 years ago) |
---|
-
wp-includes/admin-bar.php
730 730 global $show_admin_bar, $pagenow; 731 731 732 732 // For all these types of requests, we never want an admin bar. 733 if ( defined('XMLRPC_REQUEST') || defined(' APP_REQUEST') || defined('DOING_AJAX') || defined('IFRAME_REQUEST') )733 if ( defined('XMLRPC_REQUEST') || defined('DOING_AJAX') || defined('IFRAME_REQUEST') ) 734 734 return false; 735 735 736 736 // Integrated into the admin. -
wp-includes/post.php
4670 4670 * @since 2.3.0 4671 4671 * @access private 4672 4672 * @uses $wpdb 4673 * @uses XMLRPC_REQUEST and APP_REQUEST constants.4673 * @uses XMLRPC_REQUEST constant. 4674 4674 * @uses do_action() Calls 'xmlprc_publish_post' on post ID if XMLRPC_REQUEST is defined. 4675 * @uses do_action() Calls 'app_publish_post' on post ID if APP_REQUEST is defined.4676 4675 * 4677 4676 * @param int $post_id The ID in the database table of the post being published 4678 4677 */ … … 4681 4680 4682 4681 if ( defined('XMLRPC_REQUEST') ) 4683 4682 do_action('xmlrpc_publish_post', $post_id); 4684 if ( defined('APP_REQUEST') )4685 do_action('app_publish_post', $post_id);4686 4683 4687 4684 if ( defined('WP_IMPORTING') ) 4688 4685 return; -
wp-includes/pluggable-deprecated.php
168 168 else : 169 169 _deprecated_function( 'wp_login', '2.5', 'wp_signon()' ); 170 170 endif; 171 172 /** 173 * WordPress AtomPub API implementation. 174 * 175 * @since 2.2.0 176 * @deprecated 3.5.0 177 * 178 */ 179 if ( ! class_exists( 'wp_atom_server' ) ) { 180 class wp_atom_server { 181 public function __call( $name, $arguments ) { 182 _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Platform plugin' ); 183 } 184 185 public static function __callStatic( $name, $arguments ) { 186 _deprecated_function( __CLASS__ . '::' . $name, '3.5', 'the Atom Publishing Platform plugin' ); 187 } 188 } 189 } 190 No newline at end of file -
wp-includes/functions.php
1910 1910 $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' ); 1911 1911 elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) 1912 1912 $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' ); 1913 elseif ( defined( 'APP_REQUEST' ) && APP_REQUEST )1914 $function = apply_filters( 'wp_die_app_handler', '_scalar_wp_die_handler' );1915 1913 else 1916 1914 $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' ); 1917 1915 -
wp-includes/rewrite.php
1527 1527 1528 1528 // Old feed files 1529 1529 $old_feed_files = array( '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$' => $this->index . '?feed=old' ); 1530 1530 // Old service files 1531 $old_service_files = array( '.*wp-app\.php$' => $this->index . '?error=403' ); 1532 1531 1533 // Registration rules 1532 1534 $registration_pages = array(); 1533 1535 if ( is_multisite() && is_main_site() ) { … … 1585 1587 1586 1588 // Put them together. 1587 1589 if ( $this->use_verbose_page_rules ) 1588 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $ registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $page_rewrite, $post_rewrite, $this->extra_rules);1590 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $old_service_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $page_rewrite, $post_rewrite, $this->extra_rules); 1589 1591 else 1590 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $ registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules);1592 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $old_service_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); 1591 1593 1592 1594 do_action_ref_array('generate_rewrite_rules', array(&$this)); 1593 1595 $this->rules = apply_filters('rewrite_rules_array', $this->rules); -
wp-includes/class-wp.php
195 195 $query = $rewrite['$']; 196 196 $matches = array(''); 197 197 } 198 } else if ( $req_uri != 'wp-app.php' ){198 } else { 199 199 foreach ( (array) $rewrite as $match => $query ) { 200 200 // If the requesting file is the anchor of the match, prepend it to the path info. 201 201 if ( ! empty($req_uri) && strpos($match, $req_uri) === 0 && $req_uri != $request ) … … 228 228 229 229 // Parse the query. 230 230 parse_str($query, $perma_query_vars); 231 232 // If we're processing a 404 request, clear the error var 233 // since we found something. 234 unset( $_GET['error'] ); 235 unset( $error ); 231 232 if ( '404' == $error ) { 233 // If we're processing a 404 request, clear the error var 234 // since we found something. 235 unset( $_GET['error'] ); 236 unset( $error ); 237 } 236 238 } 237 239 238 240 // If req_uri is empty or if it is a request for ourself, unset error. … … 325 327 326 328 if ( is_user_logged_in() ) 327 329 $headers = array_merge($headers, wp_get_nocache_headers()); 328 if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) { 329 $status = 404; 330 if ( !is_user_logged_in() ) 331 $headers = array_merge($headers, wp_get_nocache_headers()); 332 $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset'); 330 if ( ! empty( $this->query_vars['error'] ) ) { 331 $status = (int) $this->query_vars['error']; 332 if ( in_array( $status, array( 403, 500, 502, 503 ) ) ) { 333 $exit_required = true; 334 } elseif ( 404 === $status ) { 335 if ( ! is_user_logged_in() ) 336 $headers = array_merge($headers, wp_get_nocache_headers()); 337 $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset'); 338 } 333 339 } else if ( empty($this->query_vars['feed']) ) { 334 340 $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset'); 335 341 } else { -
xmlrpc.php
42 42 <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 43 43 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 44 44 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 45 < api name="Atom" blogID="" preferred="false" apiLink="<?php echo site_url('wp-app.php/service', 'rpc') ?>" />45 <?php do_action( 'xmlrpc_rsd_apis' ); ?> 46 46 </apis> 47 47 </service> 48 48 </rsd> -
wp-admin/includes/schema.php
444 444 445 445 // 2.6 446 446 'avatar_default' => 'mystery', 447 'enable_app' => 0,448 447 449 448 // 2.7 450 449 'large_size_w' => 1024, … … 542 541 '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 543 542 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 544 543 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 545 'wporg_popular_tags', 'what_to_show', 'rss_language', 'language', 'enable_xmlrpc', 544 'wporg_popular_tags', 'what_to_show', 'rss_language', 'language', 'enable_xmlrpc', 'enable_app', 546 545 ); 547 546 foreach ( $unusedoptions as $option ) 548 547 delete_option($option); -
wp-admin/options.php
64 64 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'embed_autourls', 'embed_size_w', 'embed_size_h' ), 65 65 'privacy' => array( 'blog_public' ), 66 66 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'blog_charset', 'show_on_front', 'page_on_front', 'page_for_posts' ), 67 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'default_post_format' , 'enable_app'),67 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'default_post_format' ), 68 68 'options' => array( '' ) ); 69 69 70 70 $mail_options = array('mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass'); -
wp-admin/options-writing.php
168 168 </table> 169 169 <?php } ?> 170 170 171 <?php if ( isset( $GLOBALS['wp_settings_fields']['writing']['remote_publishing'] ) ): ?> 171 172 <h3><?php _e('Remote Publishing') ?></h3> 172 173 <p><?php printf(__('To post to WordPress from a desktop blogging client or remote website that uses the Atom Publishing Protocol or one of the XML-RPC publishing interfaces you must enable them below.')) ?></p> 173 174 <table class="form-table"> 174 <tr valign="top">175 <th scope="row"><?php _e('Atom Publishing Protocol') ?></th>176 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>177 <label for="enable_app">178 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> />179 <?php _e('Enable the Atom Publishing Protocol.') ?></label><br />180 </fieldset></td>181 </tr>182 175 <?php do_settings_fields('writing', 'remote_publishing'); ?> 183 176 </table> 177 <?php endif ?> 184 178 185 179 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> 186 180 <h3><?php _e('Update Services') ?></h3>