Changeset 56020
- Timestamp:
- 06/24/2023 05:15:06 PM (20 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-cookie.php
r55990 r56020 204 204 // Host - very basic check that the request URL ends with the domain restriction (minus leading dot). 205 205 $domain = ( str_starts_with( $domain, '.' ) ) ? substr( $domain, 1 ) : $domain; 206 if ( substr( $url['host'], -strlen( $domain ) ) !== $domain) {206 if ( ! str_ends_with( $url['host'], $domain ) ) { 207 207 return false; 208 208 } … … 214 214 215 215 // Path - request path must start with path restriction. 216 if ( substr( $url['path'], 0, strlen( $path ) ) !== $path) {216 if ( ! str_starts_with( $url['path'], $path ) ) { 217 217 return false; 218 218 } -
trunk/src/wp-includes/deprecated.php
r56019 r56020 981 981 982 982 if ( $show_updated ) 983 if ( substr($row->link_updated_f, 0, 2) !== '00')983 if ( !str_starts_with($row->link_updated_f, '00') ) 984 984 $title .= ' ('.__('Last updated') . ' ' . gmdate(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * HOUR_IN_SECONDS)) . ')'; 985 985 -
trunk/src/wp-includes/kses.php
r55990 r56020 800 800 } 801 801 if ( '"' === $quote || "'" === $quote ) { 802 if ( substr( $value, -1 ) !== $quote) {802 if ( ! str_ends_with( $value, $quote ) ) { 803 803 return ''; 804 804 }
Note: See TracChangeset
for help on using the changeset viewer.