WordPress.org

Make WordPress Core

Changeset 10897


Ignore:
Timestamp:
04/08/09 19:56:58 (5 years ago)
Author:
ryan
Message:

Add date_i18n filter. Props Denis-de-Bernardy. fixes #9396

File:
1 edited

Legend:

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

    r10862 r10897  
    9797        $gmt = true; 
    9898    } 
    99  
     99     
     100    // store original value for language with untypical grammars 
     101    // see http://core.trac.wordpress.org/ticket/9396 
     102    $req_format = $dateformatstring; 
     103     
    100104    $datefunc = $gmt? 'gmdate' : 'date'; 
    101105 
     
    118122    } 
    119123    $j = @$datefunc( $dateformatstring, $i ); 
     124    // allow plugins to redo this entirely for languages with untypical grammars 
     125    $j = apply_filters('date_i18n', $j, $req_format, $unixtimestamp, $gmt); 
    120126    return $j; 
    121127} 
Note: See TracChangeset for help on using the changeset viewer.