Changeset 57846
- Timestamp:
- 03/15/2024 08:56:20 PM (9 months ago)
- Location:
- branches/6.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5
-
branches/6.5/src/wp-includes/post.php
r57701 r57846 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.