Make WordPress Core


Ignore:
Timestamp:
06/15/2016 05:44:45 PM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: Adjust the regex in wp_maybe_decline_date() to handle word boundaries correctly.

Props semil.
Fixes #36790.

File:
1 edited

Legend:

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

    r37702 r37717  
    187187
    188188            foreach ( $months as $key => $month ) {
    189                 $months[ $key ] = '#' . $month . '#';
     189                $months[ $key ] = '#\b' . $month . '\b#u';
    190190            }
    191191
Note: See TracChangeset for help on using the changeset viewer.