Changeset 19364
- Timestamp:
- 11/20/2011 06:32:42 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r18884 r19364 219 219 if ( get_query_var( 'withcomments' ) ) 220 220 $addl_path .= 'comments/'; 221 if ( ( in_array( get_default_feed(), array( 'rss', 'rdf' ) ) && 'feed' == get_query_var('feed') ) || in_array( get_query_var('feed'), array( 'rss', 'rdf' )) )221 if ( ( 'rss' == get_default_feed() && 'feed' == get_query_var('feed') ) || 'rss' == get_query_var('feed') ) 222 222 $addl_path .= user_trailingslashit( 'feed/' . ( ( get_default_feed() == 'rss2' ) ? '' : 'rss2' ), 'feed' ); 223 223 else … … 229 229 'wp-commentsrss2.php' => 'comments_rss2', 230 230 'wp-feed.php' => get_default_feed(), 231 'wp-rdf.php' => 'r ss2',231 'wp-rdf.php' => 'rdf', 232 232 'wp-rss.php' => 'rss2', 233 233 'wp-rss2.php' => 'rss2', … … 315 315 316 316 // Redirect obsolete feeds 317 $redirect['query'] = preg_replace( '#(^|&)feed= (rss|rdf)(&|$)#', '$1feed=rss2$3', $redirect['query'] );317 $redirect['query'] = preg_replace( '#(^|&)feed=rss(&|$)#', '$1feed=rss2$3', $redirect['query'] ); 318 318 319 319 // Remove redundant leading ampersands -
trunk/wp-includes/feed.php
r18537 r19364 65 65 function get_default_feed() { 66 66 $default_feed = apply_filters('default_feed', 'rss2'); 67 return in_array( $default_feed, array( 'rss', 'rdf' ) )? 'rss2' : $default_feed;67 return 'rss' == $default_feed ? 'rss2' : $default_feed; 68 68 } 69 69 -
trunk/wp-includes/version.php
r19278 r19364 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 19 061;14 $wp_db_version = 19364; 15 15 16 16 /**
Note: See TracChangeset
for help on using the changeset viewer.