Changeset 56019
- Timestamp:
- 06/24/2023 04:48:25 PM (16 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r55988 r56019 1462 1462 foreach ( $q['search_terms'] as $term ) { 1463 1463 // If there is an $exclusion_prefix, terms prefixed with it should be excluded. 1464 $exclude = $exclusion_prefix && ( substr( $term, 0, 1 ) ===$exclusion_prefix );1464 $exclude = $exclusion_prefix && str_starts_with( $term, $exclusion_prefix ); 1465 1465 if ( $exclude ) { 1466 1466 $like_op = 'NOT LIKE'; -
trunk/src/wp-includes/deprecated.php
r55990 r56019 948 948 949 949 $order = 'ASC'; 950 if ( s ubstr($orderby, 0, 1) === '_') {950 if ( str_starts_with($orderby, '_') ) { 951 951 $order = 'DESC'; 952 952 $orderby = substr($orderby, 1); -
trunk/src/wp-includes/link-template.php
r55988 r56019 3892 3892 3893 3893 $url = trim( $url ); 3894 if ( s ubstr( $url, 0, 2 ) === '//') {3894 if ( str_starts_with( $url, '//' ) ) { 3895 3895 $url = 'http:' . $url; 3896 3896 } -
trunk/src/wp-includes/ms-functions.php
r55988 r56019 402 402 } 403 403 404 if ( $email_domain == $banned_domain ) {404 if ( $email_domain === $banned_domain ) { 405 405 $is_email_address_unsafe = true; 406 406 break; 407 407 } 408 408 409 $dotted_domain = ".$banned_domain"; 410 if ( substr( $normalized_email, -strlen( $dotted_domain ) ) === $dotted_domain ) { 409 if ( str_ends_with( $normalized_email, ".$banned_domain" ) ) { 411 410 $is_email_address_unsafe = true; 412 411 break; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r54891 r56019 1138 1138 1139 1139 // Unquote quoted filename, but after trimming. 1140 if ( s ubstr( $filename, 0, 1 ) === '"' && substr( $filename, -1, 1 ) === '"') {1140 if ( str_starts_with( $filename, '"' ) && str_ends_with( $filename, '"' ) ) { 1141 1141 $filename = substr( $filename, 1, -1 ); 1142 1142 }
Note: See TracChangeset
for help on using the changeset viewer.