WordPress.org

Make WordPress Core

Changeset 24502


Ignore:
Timestamp:
06/22/13 12:09:28 (21 months ago)
Author:
SergeyBiryukov
Message:

Use correct backreference in obsolete feed redirection code. props sweetie089. fixes #24623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/canonical.php

    r23305 r24502  
    338338 
    339339        // Redirect obsolete feeds 
    340         $redirect['query'] = preg_replace( '#(^|&)feed=rss(&|$)#', '$1feed=rss2$3', $redirect['query'] ); 
     340        $redirect['query'] = preg_replace( '#(^|&)feed=rss(&|$)#', '$1feed=rss2$2', $redirect['query'] ); 
    341341 
    342342        // Remove redundant leading ampersands 
Note: See TracChangeset for help on using the changeset viewer.