Make WordPress Core

Changeset 57638

Timestamp:
02/15/2024 11:47:21 PM (5 months ago)
Author:
joedolson
Message:

Media: Replace media icon images with SVG.

Replace the .png files in use for media library type icons with .svg versions. Improves sharpness, especially on high resolution screens and devices.

Props iseulde, melchoyce, joemcgill, sabernhardt, huzaifaalmesbah, wonderboymusic, ocean90, karmatosed, boemedia, bosskhj, joedolson.
Fixes #31352.

Location:
trunk/src
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/mediaelement/wp-playlist.js

    r54279 r57638  
    8181
    8282        renderCurrent : function () {
    83             var dimensions, defaultImage = 'wp-includes/images/media/video.png';
     83            var dimensions, defaultImage = 'wp-includes/images/media/video.g';
    8484            if ( 'video' === this.data.type ) {
    8585                if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) {
  • trunk/src/wp-includes/post.php

    r57628 r57638  
    68806880
    68816881                        $ext = strtolower( substr( $file, -4 ) );
    6882                         if ( ! in_array( $ext, array( '.png', '.gif', '.jpg' ), true ) ) {
     6882                        if ( ! in_array( $ext, array( '.png', '.gif', '.jpg' ), true ) ) {
    68836883                            if ( is_dir( "$dir/$file" ) ) {
    68846884                                $dirs[ "$dir/$file" ] = "$uri/$file";
Note: See TracChangeset for help on using the changeset viewer.