Changeset 47550 for trunk/src/wp-includes/bookmark.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r47219 r47550 280 280 $ordparam = trim( $ordparam ); 281 281 282 if ( in_array( 'link_' . $ordparam, $keys ) ) {282 if ( in_array( 'link_' . $ordparam, $keys, true ) ) { 283 283 $orderparams[] = 'link_' . $ordparam; 284 } elseif ( in_array( $ordparam, $keys ) ) {284 } elseif ( in_array( $ordparam, $keys, true ) ) { 285 285 $orderparams[] = $ordparam; 286 286 } … … 294 294 295 295 $order = strtoupper( $parsed_args['order'] ); 296 if ( '' !== $order && ! in_array( $order, array( 'ASC', 'DESC' ) ) ) {296 if ( '' !== $order && ! in_array( $order, array( 'ASC', 'DESC' ), true ) ) { 297 297 $order = 'ASC'; 298 298 } … … 413 413 case 'link_target': // "enum" 414 414 $targets = array( '_top', '_blank' ); 415 if ( ! in_array( $value, $targets ) ) {415 if ( ! in_array( $value, $targets, true ) ) { 416 416 $value = ''; 417 417 }
Note: See TracChangeset
for help on using the changeset viewer.