Make WordPress Core

Ticket #45066: 45066.5.diff

File 45066.5.diff, 7.0 KB (added by herregroen, 6 years ago)
  • src/wp-admin/includes/update-core.php

     
    743743'wp-includes/js/plupload/plupload.silverlight.xap',
    744744'wp-includes/js/swfupload/plugins',
    745745'wp-includes/js/swfupload/swfupload.swf',
    746         // 4.9.2
    747         'wp-includes/js/mediaelement/lang',
    748         'wp-includes/js/mediaelement/lang/ca.js',
    749         'wp-includes/js/mediaelement/lang/cs.js',
    750         'wp-includes/js/mediaelement/lang/de.js',
    751         'wp-includes/js/mediaelement/lang/es.js',
    752         'wp-includes/js/mediaelement/lang/fa.js',
    753         'wp-includes/js/mediaelement/lang/fr.js',
    754         'wp-includes/js/mediaelement/lang/hr.js',
    755         'wp-includes/js/mediaelement/lang/hu.js',
    756         'wp-includes/js/mediaelement/lang/it.js',
    757         'wp-includes/js/mediaelement/lang/ja.js',
    758         'wp-includes/js/mediaelement/lang/ko.js',
    759         'wp-includes/js/mediaelement/lang/nl.js',
    760         'wp-includes/js/mediaelement/lang/pl.js',
    761         'wp-includes/js/mediaelement/lang/pt.js',
    762         'wp-includes/js/mediaelement/lang/ro.js',
    763         'wp-includes/js/mediaelement/lang/ru.js',
    764         'wp-includes/js/mediaelement/lang/sk.js',
    765         'wp-includes/js/mediaelement/lang/sv.js',
    766         'wp-includes/js/mediaelement/lang/uk.js',
    767         'wp-includes/js/mediaelement/lang/zh-cn.js',
    768         'wp-includes/js/mediaelement/lang/zh.js',
    769         'wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf',
    770         'wp-includes/js/mediaelement/mediaelement-flash-audio.swf',
    771         'wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf',
    772         'wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf',
    773         'wp-includes/js/mediaelement/mediaelement-flash-video.swf',
    774         'wp-includes/js/mediaelement/renderers/dailymotion.js',
    775         'wp-includes/js/mediaelement/renderers/dailymotion.min.js',
    776         'wp-includes/js/mediaelement/renderers/facebook.js',
    777         'wp-includes/js/mediaelement/renderers/facebook.min.js',
    778         'wp-includes/js/mediaelement/renderers/soundcloud.js',
    779         'wp-includes/js/mediaelement/renderers/soundcloud.min.js',
    780         'wp-includes/js/mediaelement/renderers/twitch.js',
    781         'wp-includes/js/mediaelement/renderers/twitch.min.js',
     746// 4.9.2
     747'wp-includes/js/mediaelement/lang',
     748'wp-includes/js/mediaelement/lang/ca.js',
     749'wp-includes/js/mediaelement/lang/cs.js',
     750'wp-includes/js/mediaelement/lang/de.js',
     751'wp-includes/js/mediaelement/lang/es.js',
     752'wp-includes/js/mediaelement/lang/fa.js',
     753'wp-includes/js/mediaelement/lang/fr.js',
     754'wp-includes/js/mediaelement/lang/hr.js',
     755'wp-includes/js/mediaelement/lang/hu.js',
     756'wp-includes/js/mediaelement/lang/it.js',
     757'wp-includes/js/mediaelement/lang/ja.js',
     758'wp-includes/js/mediaelement/lang/ko.js',
     759'wp-includes/js/mediaelement/lang/nl.js',
     760'wp-includes/js/mediaelement/lang/pl.js',
     761'wp-includes/js/mediaelement/lang/pt.js',
     762'wp-includes/js/mediaelement/lang/ro.js',
     763'wp-includes/js/mediaelement/lang/ru.js',
     764'wp-includes/js/mediaelement/lang/sk.js',
     765'wp-includes/js/mediaelement/lang/sv.js',
     766'wp-includes/js/mediaelement/lang/uk.js',
     767'wp-includes/js/mediaelement/lang/zh-cn.js',
     768'wp-includes/js/mediaelement/lang/zh.js',
     769'wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf',
     770'wp-includes/js/mediaelement/mediaelement-flash-audio.swf',
     771'wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf',
     772'wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf',
     773'wp-includes/js/mediaelement/mediaelement-flash-video.swf',
     774'wp-includes/js/mediaelement/renderers/dailymotion.js',
     775'wp-includes/js/mediaelement/renderers/dailymotion.min.js',
     776'wp-includes/js/mediaelement/renderers/facebook.js',
     777'wp-includes/js/mediaelement/renderers/facebook.min.js',
     778'wp-includes/js/mediaelement/renderers/soundcloud.js',
     779'wp-includes/js/mediaelement/renderers/soundcloud.min.js',
     780'wp-includes/js/mediaelement/renderers/twitch.js',
     781'wp-includes/js/mediaelement/renderers/twitch.min.js',
     782// 5.0.0
     783'wp-includes/js/wp-a11y.js', // Moved to: wp-includes/js/dist/a11y.js
     784'wp-includes/js/wp-a11y.min.js', // Moved to: wp-includes/js/dist/a11y.min.js
    782785);
    783786
    784787/**
  • src/wp-includes/script-loader.php

     
    699699                'expandMenu'   => __( 'Expand Main menu' ),
    700700        ) );
    701701
    702         $scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery' ), false, 1 );
    703 
    704702        $scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", array(), '1.6.1', 1 );
    705703
    706704        $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 );
  • tests/phpunit/tests/dependencies/scripts.php

     
    668668                global $wp_scripts;
    669669
    670670                wp_default_scripts( $wp_scripts );
     671                wp_default_packages( $wp_scripts );
    671672
    672673                $wp_scripts->base_url  = '';
    673674                $wp_scripts->do_concat = true;
    674675
    675676                $ver = get_bloginfo( 'version' );
    676                 $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate,wp-a11y&amp;ver={$ver}'></script>\n";
     677
     678                $expected  = "\n<script type='text/javascript'>\n";
     679                $expected .= "/* <![CDATA[ */\n";
     680                $expected .= "( 'fetch' in window ) || document.write( '<script src=\"/wp-includes/js/dist/vendor/wp-polyfill-fetch.js\"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src=\"/wp-includes/js/dist/vendor/wp-polyfill-node-contains.js\"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src=\"/wp-includes/js/dist/vendor/wp-polyfill-formdata.js\"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src=\"/wp-includes/js/dist/vendor/wp-polyfill-element-closest.js\"></scr' + 'ipt>' );/* ]]> */\n";
     681                $expected .= "</script>\n";
     682                $expected .= "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate,wp-polyfill,wp-dom-ready,wp-a11y&amp;ver={$ver}'></script>\n";
    677683                $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n";
    678684                $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
    679685                $expected .= "<script type='text/javascript' src='http://example2.com'></script>\n";
     
    697703                global $wp_scripts;
    698704
    699705                wp_default_scripts( $wp_scripts );
     706                wp_default_packages( $wp_scripts );
    700707
    701708                $wp_scripts->base_url  = '';
    702709                $wp_scripts->do_concat = true;
  • tests/qunit/index.html

     
    2424                        };
    2525                </script>
    2626                <script src="../../src/wp-includes/js/wp-util.js"></script>
    27                 <script src="../../src/wp-includes/js/wp-a11y.js"></script>
     27                <script src="../../src/wp-includes/js/dist/a11y.js"></script>
    2828                <script>
    2929                        window._wpMediaModelsL10n = {"settings":{"ajaxurl":"\/wp-admin\/admin-ajax.php","post":{"id":0}}};
    3030                </script>