Changeset 3644 for trunk/wp-includes/functions.php
- Timestamp:
- 03/17/2006 01:16:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3639 r3644 2016 2016 function load_template($file) { 2017 2017 global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, 2018 $wp_rewrite, $wpdb, $wp_version, $wp ;2018 $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment; 2019 2019 2020 2020 extract($wp_query->query_vars); … … 2221 2221 2222 2222 $for_comments = false; 2223 if ( is_single() || ( $withcomments== 1) ) {2223 if ( is_single() || (get_query_var('withcomments') == 1) ) { 2224 2224 $feed = 'rss2'; 2225 2225 $for_comments = true; … … 2239 2239 2240 2240 function do_feed_rss2($for_comments) { 2241 if ( $for_comments ) 2241 if ( $for_comments ) { 2242 2242 load_template(ABSPATH . 'wp-commentsrss2.php'); 2243 else2243 } else { 2244 2244 load_template(ABSPATH . 'wp-rss2.php'); 2245 } 2245 2246 } 2246 2247
Note: See TracChangeset
for help on using the changeset viewer.