WordPress.org

Make WordPress Core

Changeset 3654


Ignore:
Timestamp:
03/21/06 04:19:52 (9 years ago)
Author:
ryan
Message:

Fix backreferences in mysql2date(). Props tenpura. fixes #2564

File:
1 edited

Legend:

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

    r3644 r3654  
    3636        $dateweekday_abbrev = $weekday_abbrev[$dateweekday]; 
    3737        $dateformatstring = ' '.$dateformatstring; 
    38         $dateformatstring = preg_replace("/([^\\\])D/", "\\1".backslashit($dateweekday_abbrev), $dateformatstring); 
    39         $dateformatstring = preg_replace("/([^\\\])F/", "\\1".backslashit($datemonth), $dateformatstring); 
    40         $dateformatstring = preg_replace("/([^\\\])l/", "\\1".backslashit($dateweekday), $dateformatstring); 
    41         $dateformatstring = preg_replace("/([^\\\])M/", "\\1".backslashit($datemonth_abbrev), $dateformatstring); 
     38        $dateformatstring = preg_replace("/([^\\\])D/", "\${1}".backslashit($dateweekday_abbrev), $dateformatstring); 
     39        $dateformatstring = preg_replace("/([^\\\])F/", "\${1}".backslashit($datemonth), $dateformatstring); 
     40        $dateformatstring = preg_replace("/([^\\\])l/", "\${1}".backslashit($dateweekday), $dateformatstring); 
     41        $dateformatstring = preg_replace("/([^\\\])M/", "\${1}".backslashit($datemonth_abbrev), $dateformatstring); 
    4242 
    4343        $dateformatstring = substr($dateformatstring, 1, strlen($dateformatstring)-1); 
Note: See TracChangeset for help on using the changeset viewer.