Changeset 11198 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-warnings/wporg-gp-custom-warnings.php
- Timestamp:
- 08/25/2021 04:54:00 AM (3 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
r11194 r11198 231 231 * Adds a warning for changing placeholders. 232 232 * 233 * This only supports placeholders in the format of '###[A-Z _]+###'.233 * This only supports placeholders in the format of '###[A-Za-z_-]+###'. 234 234 * 235 235 * @param string $original The original string. … … 237 237 */ 238 238 public function warning_mismatching_placeholders( $original, $translation ) { 239 $placeholder_regex = '@(###[A-Z _]+###)@';239 $placeholder_regex = '@(###[A-Za-z_-]+###)@'; 240 240 241 241 preg_match_all( $placeholder_regex, $original, $original_placeholders );
Note: See TracChangeset
for help on using the changeset viewer.