Make WordPress Core


Ignore:
Timestamp:
02/15/2024 11:47:21 PM (14 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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( '.svg', '.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.