Make WordPress Core

Ticket #25639: 25639.3.diff

File 25639.3.diff, 5.1 KB (added by markjaquith, 11 years ago)

Fix a copy/paste error in .2

  • src/wp-includes/class-wp.php

     
    1515         * @access public
    1616         * @var array
    1717         */
    18         var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type');
     18        var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type', 'callback', 'pretty');
    1919
    2020        /**
    2121         * Private query variables.
  • src/wp-includes/default-filters.php

     
    237237add_action( 'do_feed_rss',                'do_feed_rss',                             10, 1 );
    238238add_action( 'do_feed_rss2',               'do_feed_rss2',                            10, 1 );
    239239add_action( 'do_feed_atom',               'do_feed_atom',                            10, 1 );
     240add_action( 'do_feed_as1',                'do_feed_as1',                             10, 1 );
     241add_action( 'do_feed_rssjs',              'do_feed_rssjs',                           10, 1 );
    240242add_action( 'do_pings',                   'do_all_pings',                            10, 1 );
    241243add_action( 'do_robots',                  'do_robots'                                      );
    242244add_action( 'set_comment_cookies',        'wp_set_comment_cookies',                  10, 2 );
  • src/wp-includes/feed.php

     
    507507                'rss2' => 'application/rss+xml',
    508508                'rss-http'  => 'text/xml',
    509509                'atom' => 'application/atom+xml',
    510                 'rdf'  => 'application/rdf+xml'
     510                'rdf'  => 'application/rdf+xml',
     511                'as1'  => 'application/stream+json',
     512                'rssjs' => 'application/rss+json'
    511513        );
    512514
    513515        $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';
  • src/wp-includes/functions.php

     
    10831083}
    10841084
    10851085/**
     1086 * Load either Activity Streams 1 comment feed or Activity Streams posts feed.
     1087 *
     1088 * @since 3.8.0
     1089 *
     1090 * @param bool $for_comments True for the comment feed, false for normal feed.
     1091 */
     1092function do_feed_as1( $for_comments ) {
     1093        if ($for_comments)
     1094                load_template( ABSPATH . WPINC . '/feed-as1-comments.php');
     1095        else
     1096                load_template( ABSPATH . WPINC . '/feed-as1.php' );
     1097}
     1098
     1099/**
     1100 * Load either rssjs comment feed or rssjs posts feed.
     1101 *
     1102 * @since 3.8.0
     1103 *
     1104 * @param bool $for_comments True for the comment feed, false for normal feed.
     1105 */
     1106function do_feed_rssjs( $for_comments ) {
     1107        if ($for_comments)
     1108                load_template( ABSPATH . WPINC . '/feed-rssjs-comments.php');
     1109        else
     1110                load_template( ABSPATH . WPINC . '/feed-rssjs.php' );
     1111}
     1112
     1113/**
    10861114 * Display the robots.txt file content.
    10871115 *
    10881116 * The echo content should be with usage of the permalinks or for creating the
  • src/wp-includes/general-template.php

     
    477477                case 'comments_rss2_url':
    478478                        $output = get_feed_link('comments_rss2');
    479479                        break;
     480                case 'as1_url':
     481                        $output = get_feed_link('as1');
     482                        break;
     483                case 'comments_as1_url':
     484                        $output = get_feed_link('comments_as1');
     485                        break;
     486                case 'rssjs_url':
     487                        $output = get_feed_link('rssjs');
     488                        break;
     489                case 'comments_rssjs_url':
     490                        $output = get_feed_link('comments_rssjs');
     491                        break;
    480492                case 'pingback_url':
    481493                        $output = site_url( 'xmlrpc.php' );
    482494                        break;
  • src/wp-includes/rewrite.php

     
    743743         * @access private
    744744         * @var array
    745745         */
    746         var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
     746        var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom', 'as1', 'rssjs' );
    747747
    748748        /**
    749749         * Whether permalinks are being used.