Changeset 55990 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 06/22/2023 02:55:47 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r55988 r55990 1565 1565 1566 1566 if ( 'f' === $type && true === $this->allow_unsafe_unquoted_parameters 1567 && '%' === substr( $split_query[ $key - 1 ], -1, 1)1567 && str_ends_with( $split_query[ $key - 1 ], '%' ) 1568 1568 ) { 1569 1569 … … 1626 1626 */ 1627 1627 if ( true !== $this->allow_unsafe_unquoted_parameters 1628 || ( '' === $format && '%' !== substr( $split_query[ $key - 1 ], -1, 1) )1628 || ( '' === $format && ! str_ends_with( $split_query[ $key - 1 ], '%' ) ) 1629 1629 ) { 1630 1630 $placeholder = "'%" . $format . "s'";
Note: See TracChangeset
for help on using the changeset viewer.