Changeset 58448 for branches/6.5/src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
- Timestamp:
- 06/20/2024 04:28:55 PM (6 months ago)
- Location:
- branches/6.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5
-
branches/6.5/src/wp-includes/rest-api/endpoints/class-wp-rest-font-faces-controller.php
r57879 r58448 917 917 918 918 $fonts_dir = wp_get_font_dir(); 919 if ( str_starts_with( $new_path, $fonts_dir[' path'] ) ) {920 $new_path = str_replace( $fonts_dir , '', $new_path );919 if ( str_starts_with( $new_path, $fonts_dir['basedir'] ) ) { 920 $new_path = str_replace( $fonts_dir['basedir'], '', $new_path ); 921 921 $new_path = ltrim( $new_path, '/' ); 922 922 }
Note: See TracChangeset
for help on using the changeset viewer.