- Timestamp:
- 07/10/2023 10:58:33 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-media-control.php
r50810 r56193 89 89 if ( is_object( $this->setting ) ) { 90 90 if ( $this->setting->default ) { 91 // Fake an attachment model - needs all fields used by template. 92 // Note that the default value must be a URL, NOT an attachment ID. 91 /* 92 * Fake an attachment model - needs all fields used by template. 93 * Note that the default value must be a URL, NOT an attachment ID. 94 */ 93 95 $ext = substr( $this->setting->default, -3 ); 94 96 $type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp', 'webp' ), true ) ? 'image' : 'document';
Note: See TracChangeset
for help on using the changeset viewer.