Changeset 55888 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 06/07/2023 06:54:18 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r55870 r55888 2873 2873 // Build an array of styles that have a path defined. 2874 2874 foreach ( $wp_styles->queue as $handle ) { 2875 if ( wp_styles()->get_data( $handle, 'path' ) && file_exists( $wp_styles->registered[ $handle ]->extra['path'] ) ) { 2875 $src = $wp_styles->registered[ $handle ]->src; 2876 $path = wp_styles()->get_data( $handle, 'path' ); 2877 if ( $path && $src ) { 2878 $size = wp_filesize( $path ); 2879 if ( ! $size ) { 2880 continue; 2881 } 2876 2882 $styles[] = array( 2877 2883 'handle' => $handle, 2878 'src' => $ wp_styles->registered[ $handle ]->src,2879 'path' => $ wp_styles->registered[ $handle ]->extra['path'],2880 'size' => filesize( $wp_styles->registered[ $handle ]->extra['path'] ),2884 'src' => $src, 2885 'path' => $path, 2886 'size' => $size, 2881 2887 ); 2882 2888 }
Note: See TracChangeset
for help on using the changeset viewer.