Changeset 56031 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/26/2023 10:15:04 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r56021 r56031 1020 1020 1021 1021 // Don't bother if there are no entities - saves a lot of processing. 1022 if ( strpos( $text, '&' ) === false) {1022 if ( ! str_contains( $text, '&' ) ) { 1023 1023 return $text; 1024 1024 } … … 2475 2475 } 2476 2476 2477 if ( str pos( $content, '&' ) !== false) {2477 if ( str_contains( $content, '&' ) ) { 2478 2478 $content = preg_replace( '/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content ); 2479 2479 } … … 2526 2526 ); 2527 2527 2528 if ( str pos( $content, '' ) !== false) {2528 if ( str_contains( $content, '' ) ) { 2529 2529 $content = strtr( $content, $wp_htmltranswinuni ); 2530 2530 } … … 5582 5582 $filtered = wp_check_invalid_utf8( $str ); 5583 5583 5584 if ( str pos( $filtered, '<' ) !== false) {5584 if ( str_contains( $filtered, '<' ) ) { 5585 5585 $filtered = wp_pre_kses_less_than( $filtered ); 5586 5586 // This will strip extra whitespace for us. … … 6067 6067 6068 6068 foreach ( $headers as $header ) { 6069 if ( strpos( $header, ':' ) === false) {6069 if ( ! str_contains( $header, ':' ) ) { 6070 6070 continue; 6071 6071 } … … 6079 6079 6080 6080 if ( 'content-type' === strtolower( $name ) ) { 6081 if ( str pos( $content, ';' ) !== false) {6081 if ( str_contains( $content, ';' ) ) { 6082 6082 list( $type, $charset ) = explode( ';', $content ); 6083 6083 $content_type = trim( $type );
Note: See TracChangeset
for help on using the changeset viewer.