WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20942, comment 2


Ignore:
Timestamp:
09/10/12 01:51:39 (20 months ago)
Author:
wonderboymusic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20942, comment 2

    initial v1  
    1 The RegEx already checks for proper date string, so all we need to do if wrap the if / else timezone code in if ( $matches ) { .... }. I am not in love with the procedural aliases PHP offers. 
     1The RegEx already checks for proper date string, so all we need to do is wrap the if / else timezone code in if ( $matches ) { .... }. I am not in love with the procedural aliases PHP offers. 
    22 
    33Attached a patch