Changeset 11194 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
- Timestamp:
- 08/24/2021 05:01:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
r11039 r11194 312 312 // https://github.com/GlotPress/GlotPress-WP/pull/1237 313 313 add_filter( 'gp_warning_placeholders_re', function( $re ) { 314 return '(?<!%)%(\d+\$(?:\d+)?)?[bcdefgosuxEFGX%l]'; 314 // bcdefgosuxEFGX are standard printf placeholders. 315 // % is included to allow/expect %%. 316 // l is included for wp_sprintf_l()'s custom %l format. 317 // @ is included for Swift (as used for iOS mobile app) %@ string format. 318 return '(?<!%)%(\d+\$(?:\d+)?)?[bcdefgosuxEFGX%l@]'; 315 319 } ); 316 320 }
Note: See TracChangeset
for help on using the changeset viewer.