Ticket #25639: 25639.3.diff
File 25639.3.diff, 5.1 KB (added by , 11 years ago) |
---|
-
src/wp-includes/class-wp.php
15 15 * @access public 16 16 * @var array 17 17 */ 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'); 19 19 20 20 /** 21 21 * Private query variables. -
src/wp-includes/default-filters.php
237 237 add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 ); 238 238 add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 ); 239 239 add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 ); 240 add_action( 'do_feed_as1', 'do_feed_as1', 10, 1 ); 241 add_action( 'do_feed_rssjs', 'do_feed_rssjs', 10, 1 ); 240 242 add_action( 'do_pings', 'do_all_pings', 10, 1 ); 241 243 add_action( 'do_robots', 'do_robots' ); 242 244 add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 2 ); -
src/wp-includes/feed.php
507 507 'rss2' => 'application/rss+xml', 508 508 'rss-http' => 'text/xml', 509 509 'atom' => 'application/atom+xml', 510 'rdf' => 'application/rdf+xml' 510 'rdf' => 'application/rdf+xml', 511 'as1' => 'application/stream+json', 512 'rssjs' => 'application/rss+json' 511 513 ); 512 514 513 515 $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream'; -
src/wp-includes/functions.php
1083 1083 } 1084 1084 1085 1085 /** 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 */ 1092 function 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 */ 1106 function 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 /** 1086 1114 * Display the robots.txt file content. 1087 1115 * 1088 1116 * The echo content should be with usage of the permalinks or for creating the -
src/wp-includes/general-template.php
477 477 case 'comments_rss2_url': 478 478 $output = get_feed_link('comments_rss2'); 479 479 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; 480 492 case 'pingback_url': 481 493 $output = site_url( 'xmlrpc.php' ); 482 494 break; -
src/wp-includes/rewrite.php
743 743 * @access private 744 744 * @var array 745 745 */ 746 var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );746 var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom', 'as1', 'rssjs' ); 747 747 748 748 /** 749 749 * Whether permalinks are being used.