Changeset 57845
- Timestamp:
- 03/15/2024 04:35:18 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r57701 r57845 6869 6869 $dirs = apply_filters( 'icon_dirs', array( $icon_dir => $icon_dir_uri ) ); 6870 6870 $icon_files = array(); 6871 $all_icons = array(); 6871 6872 while ( $dirs ) { 6872 6873 $keys = array_keys( $dirs ); … … 6888 6889 continue; 6889 6890 } 6891 $all_icons[ "$dir/$file" ] = "$uri/$file"; 6890 6892 if ( $ext === $preferred_ext ) { 6891 6893 $icon_files[ "$dir/$file" ] = "$uri/$file"; … … 6894 6896 closedir( $dh ); 6895 6897 } 6898 } 6899 // If directory only contained icons of a non-preferred format, return those. 6900 if ( empty( $icon_files ) ) { 6901 $icon_files = $all_icons; 6896 6902 } 6897 6903 wp_cache_add( 'icon_files', $icon_files, 'default', 600 );
Note: See TracChangeset
for help on using the changeset viewer.