Make WordPress Core


Ignore:
Timestamp:
04/08/2009 07:56:58 PM (16 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.