Changeset 55703 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r55702 r55703 2263 2263 2264 2264 // Array keys should be preserved for values of $fields that use term_id for keys. 2265 if ( ! empty( $args['fields'] ) && 0 === strpos( $args['fields'], 'id=>' ) ) {2265 if ( ! empty( $args['fields'] ) && str_starts_with( $args['fields'], 'id=>' ) ) { 2266 2266 $terms = $terms + $terms_from_remaining_taxonomies; 2267 2267 } else { … … 3507 3507 $object_types = (array) $taxonomy->object_type; 3508 3508 foreach ( $object_types as &$object_type ) { 3509 if ( 0 === strpos( $object_type, 'attachment:' ) ) {3509 if ( str_starts_with( $object_type, 'attachment:' ) ) { 3510 3510 list( $object_type ) = explode( ':', $object_type ); 3511 3511 }
Note: See TracChangeset
for help on using the changeset viewer.