Make WordPress Core

Ticket #31352: 31352.5.diff

File 31352.5.diff, 8.7 KB (added by sabernhardt, 11 months ago)
  • src/js/_enqueues/vendor/mediaelement/wp-playlist.js

     
    8080                },
    8181
    8282                renderCurrent : function () {
    83                         var dimensions, defaultImage = 'wp-includes/images/media/video.png';
     83                        var dimensions, defaultImage = 'wp-includes/images/media/video.svg';
    8484                        if ( 'video' === this.data.type ) {
    8585                                if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) {
    8686                                        this.playerNode.attr( 'poster', this.current.get( 'image' ).src );
  • src/wp-includes/images/media/archive.svg

     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M300 100v300H0V0h200l100 100zm-100 0h75l-75-75v75zM100 37.5v50l45-25-45-25zm0 75v50l45-25-45-25zm0 75v50l45-25-45-25zm75 87.5v-50l-45 25 45 25zm0-75v-50l-45 25 45 25zm0-75V75l-45 25 45 25zm-62.5 142.5s-10 50-12.5 67.5 17.5 40 37.5 40 40-17.5 37.5-40c-2.5-10-12.5-40-12.5-40l-50-27.5z"/><circle cx="137.5" cy="335" r="20"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/audio.svg

    Property changes on: src/wp-includes/images/media/archive.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zm25 180v100c0 10-2.5 17.5-10 25s-15 10-25 10-17.5-2.5-25-10-10-15-10-25 2.5-17.5 10-25 15-10 25-10c5 0 10 0 15 2.5V190l-87.5 20v85c0 7.5-5 15-12.5 20-5 7.5-12.5 10-20 10-10 0-17.5-2.5-25-10-5-7.5-10-15-10-25s2.5-17.5 10-25 15-10 25-10c5 0 10 0 15 2.5V180c0-2.5 0-5 2.5-5 2.5-2.5 5-2.5 7.5-2.5l107.5-20c2.5 0 5 0 7.5 2.5v25zm-25-80V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/code.svg

    Property changes on: src/wp-includes/images/media/audio.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zm-75 275-25 25-75-75 75-75 25 25-50 50 50 50zm75 25-25-25 50-50-50-50 25-25 75 75-75 75zm0-200V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/default.svg

    Property changes on: src/wp-includes/images/media/code.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zm0 100V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/document.svg

    Property changes on: src/wp-includes/images/media/default.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zM25 25h150v25H25V25zm0 50h150v25H25V75zm0 100h100v25H25v-25zm0 50h100v25H25v-25zm175 125H25v-25h175v25zm75-50H25v-25h250v25zm0-50H150v-75h125v75zm0-100H25v-25h250v25zm-75-50V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/interactive.svg

    Property changes on: src/wp-includes/images/media/document.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zm50 300h-75l25 50h-25l-25-50-25 50h-25l25-50H50V150h200v150zm-50-200V25l75 75h-75z"/><path d="M150 175h75v50h-75zM75 250h150v25H75z"/><circle cx="100" cy="200" r="25"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/spreadsheet.svg

    Property changes on: src/wp-includes/images/media/interactive.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zM100 350H25v-25h75v25zm0-50H25v-25h75v25zm0-50H25v-25h75v25zm0-50H25v-25h75v25zm0-50H25v-25h75v25zm75 200h-50v-25h50v25zm0-50h-50v-25h50v25zm0-50h-50v-25h50v25zm0-50h-50v-25h50v25zm0-50h-50v-25h50v25zm0-50H25V25h150v75zm100 200h-75v-25h75v25zm0-50h-75v-25h75v25zm0-50h-75v-25h75v25zm0-50h-75v-25h75v25zm-75-50V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/text.svg

    Property changes on: src/wp-includes/images/media/spreadsheet.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zM25 25h150v25H25V25zm0 50h150v25H25V75zm150 225H25v-25h150v25zm100-50H25v-25h250v25zm0-50H25v-25h250v25zm0-50H25v-25h250v25zm-75-50V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/images/media/video.svg

    Property changes on: src/wp-includes/images/media/text.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
     1<svg xmlns="http://www.w3.org/2000/svg" width="48" height="64" viewBox="0 0 300 400" fill="#888888"><path d="M200 0H0v400h300V100L200 0zm-25 300c0 7.5-2.5 12.5-7.5 17.5s-10 7.5-17.5 7.5H75c-7.5 0-12.5-2.5-17.5-7.5S50 307.5 50 300v-75c0-7.5 2.5-12.5 7.5-17.5s10-7.5 17.5-7.5h75c7.5 0 12.5 2.5 17.5 7.5s7.5 10 7.5 17.5v75zm75 0v25l-50-50v-25l50-50v100zm-50-200V25l75 75h-75z"/></svg>
     2 No newline at end of file
  • src/wp-includes/post.php

    Property changes on: src/wp-includes/images/media/video.svg
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
     
    68796879                                                }
    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";
    68856885                                                        }