Changeset 55988 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 06/22/2023 02:34:56 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r55642 r55988 510 510 511 511 foreach ( $endians as $endian ) { 512 if ( false !== strpos( $this->permalink_structure, $endian ) ) {512 if ( str_contains( $this->permalink_structure, $endian ) ) { 513 513 $date_endian = $endian; 514 514 break; … … 1661 1661 $query = add_query_arg( $query, 'index.php' ); 1662 1662 } else { 1663 $index = false === strpos( $query, '?' ) ? strlen( $query ) : strpos( $query, '?' );1663 $index = ! str_contains( $query, '?' ) ? strlen( $query ) : strpos( $query, '?' ); 1664 1664 $front = substr( $query, 0, $index ); 1665 1665
Note: See TracChangeset
for help on using the changeset viewer.