Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #44296, comment 9


Ignore:
Timestamp:
07/11/2018 04:20:43 PM (8 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44296, comment 9

    v2 v3  
    6161I'm not sure about the general support for the PCRE {{{u}}} modifier though and the security aspect of it.
    6262
    63 Ticket #24661 introduces the {{{_wp_can_use_pcre_u()}}} function.
     63There's a core  [https://github.com/WordPress/WordPress/blob/29d5e980cc0324da3260943e9ddd2088a3919fad/wp-includes/compat.php#L16 _wp_can_use_pcre_u()] function and ticket #24661 introduces the {{{_wp_can_use_pcre_ucp()}}} function.
     64
    6465
    6566It's interesting to see how core uses the {{{u}}} modifier, both with a support check and also without such a check, e.g. in {{{sanitize_file_name()}}}, {{{WP_Text_Diff_Renderer_inline::_splitOnWords()}}} and {{{wp_maybe_decline_date()}}}.