Changeset 55703 for trunk/src/wp-includes/media.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r55318 r55703 3731 3731 foreach ( get_taxonomies( array(), 'objects' ) as $taxonomy ) { 3732 3732 foreach ( $taxonomy->object_type as $object_type ) { 3733 if ( 'attachment' === $object_type || 0 === strpos( $object_type, 'attachment:' ) ) {3733 if ( 'attachment' === $object_type || str_starts_with( $object_type, 'attachment:' ) ) { 3734 3734 if ( 'names' === $output ) { 3735 3735 $taxonomies[] = $taxonomy->name; … … 5121 5121 } 5122 5122 5123 if ( 0 === strpos( $path, $dir['baseurl'] . '/' ) ) {5123 if ( str_starts_with( $path, $dir['baseurl'] . '/' ) ) { 5124 5124 $path = substr( $path, strlen( $dir['baseurl'] . '/' ) ); 5125 5125 }
Note: See TracChangeset
for help on using the changeset viewer.