WordPress/wp-includes/customize
joedolson 5fd767d87d Media: Ensure wp_mine_type_icon() returns expected file type.
Add an argument to `wp_mime_type_icon()` to control the file type returned. Following [57638], there are two file formats in the media icons directory. Different systems would pull up different files by default dependent on the order loaded into the cached array, causing intermittent test failures and unpredictable behavior.

Function update allows core usages to always return the `.svg` while maintaining backwards compatibility for any extended usage that expects a `.png`. Follow up to [57638].

Also handles a missed case in media list view.

Props SergeyBiryukov, sabernhardt, joedolson, antpb.
Fixes #31352.
Built from https://develop.svn.wordpress.org/trunk@57687


git-svn-id: http://core.svn.wordpress.org/trunk@57188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-21 19:29:04 +00:00
..
class-wp-customize-background-image-control.php
class-wp-customize-background-image-setting.php
class-wp-customize-background-position-control.php
class-wp-customize-code-editor-control.php
class-wp-customize-color-control.php
class-wp-customize-cropped-image-control.php
class-wp-customize-custom-css-setting.php
class-wp-customize-date-time-control.php
class-wp-customize-filter-setting.php
class-wp-customize-header-image-control.php
class-wp-customize-header-image-setting.php
class-wp-customize-image-control.php
class-wp-customize-media-control.php Media: Ensure wp_mine_type_icon() returns expected file type. 2024-02-21 19:29:04 +00:00
class-wp-customize-nav-menu-auto-add-control.php
class-wp-customize-nav-menu-control.php
class-wp-customize-nav-menu-item-control.php Administration: Replace "Current theme" with "Active theme" in user facing strings. 2022-01-15 08:44:03 +00:00
class-wp-customize-nav-menu-item-setting.php
class-wp-customize-nav-menu-location-control.php
class-wp-customize-nav-menu-locations-control.php
class-wp-customize-nav-menu-name-control.php
class-wp-customize-nav-menu-section.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-customize-nav-menu-setting.php
class-wp-customize-nav-menus-panel.php
class-wp-customize-new-menu-control.php Docs: Add a @see reference to WP_Customize_Control::__construct() in child class constructors. 2020-02-26 13:30:08 +00:00
class-wp-customize-new-menu-section.php Docs: Use a consistent description for the $manager parameter in various Customizer class constructions. 2020-02-26 15:33:05 +00:00
class-wp-customize-partial.php
class-wp-customize-selective-refresh.php
class-wp-customize-sidebar-section.php
class-wp-customize-site-icon-control.php
class-wp-customize-theme-control.php
class-wp-customize-themes-panel.php
class-wp-customize-themes-section.php
class-wp-customize-upload-control.php
class-wp-sidebar-block-editor-control.php
class-wp-widget-area-customize-control.php
class-wp-widget-form-customize-control.php