Changeset 45611 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 07/09/2019 05:44:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r45602 r45611 995 995 } 996 996 997 $string = @htmlspecialchars( $string, $quote_style, $charset, $double_encode );997 $string = htmlspecialchars( $string, $quote_style, $charset, $double_encode ); 998 998 999 999 // Back-compat. … … 1130 1130 static $utf8_pcre = null; 1131 1131 if ( ! isset( $utf8_pcre ) ) { 1132 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged 1132 1133 $utf8_pcre = @preg_match( '/^./u', 'a' ); 1133 1134 } … … 1137 1138 } 1138 1139 1139 // p reg_match fails when it encounters invalid UTF8 in $string1140 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- preg_match fails when it encounters invalid UTF8 in $string 1140 1141 if ( 1 === @preg_match( '/^./us', $string ) ) { 1141 1142 return $string;
Note: See TracChangeset
for help on using the changeset viewer.