WordPress.org

Make WordPress Core

Ticket #21661: 21661.diff

File 21661.diff, 3.5 KB (added by helenyhou, 8 years ago)
  • wp-includes/script-loader.php

     
    9090
    9191        $scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), false, 1 );
    9292
    93         $scripts->add( 'prototype', '/wp-includes/js/prototype.js', array(), '1.6.1');
     93        $scripts->add( 'prototype', '//ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js', array(), '1.6.1');
    9494
    9595        $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), false, 1 );
    9696        did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
     
    107107
    108108        $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), false, 1 );
    109109
    110         $scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');
    111         $scripts->add( 'scriptaculous-builder', '/wp-includes/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.8.3');
    112         $scripts->add( 'scriptaculous-dragdrop', '/wp-includes/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.3');
    113         $scripts->add( 'scriptaculous-effects', '/wp-includes/js/scriptaculous/effects.js', array('scriptaculous-root'), '1.8.3');
    114         $scripts->add( 'scriptaculous-slider', '/wp-includes/js/scriptaculous/slider.js', array('scriptaculous-effects'), '1.8.3');
    115         $scripts->add( 'scriptaculous-sound', '/wp-includes/js/scriptaculous/sound.js', array( 'scriptaculous-root' ), '1.8.3' );
    116         $scripts->add( 'scriptaculous-controls', '/wp-includes/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.3');
     110        $scripts->add( 'scriptaculous-root', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js', array('prototype'), '1.8.3');
     111        $scripts->add( 'scriptaculous-builder', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/builder.js', array('scriptaculous-root'), '1.8.3');
     112        $scripts->add( 'scriptaculous-dragdrop', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.3');
     113        $scripts->add( 'scriptaculous-effects', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/effects.js', array('scriptaculous-root'), '1.8.3');
     114        $scripts->add( 'scriptaculous-slider', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/slider.js', array('scriptaculous-effects'), '1.8.3');
     115        $scripts->add( 'scriptaculous-sound', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/sound.js', array( 'scriptaculous-root' ), '1.8.3' );
     116        $scripts->add( 'scriptaculous-controls', '//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/controls.js', array('scriptaculous-root'), '1.8.3');
    117117        $scripts->add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.3');
    118118
    119119        // not used in core, replaced by Jcrop.js
  • wp-admin/includes/update-core.php

     
    437437'wp-admin/images/widgets-arrow.gif',
    438438'wp-admin/images/wpspin_dark.gif',
    439439'wp-includes/images/upload.png',
     440'wp-includes/js/prototype.js',
     441'wp-includes/js/scriptaculous',
    440442// Don't delete, yet: 'wp-admin/images/media-button-music.gif',
    441443// Don't delete, yet: 'wp-admin/images/media-button-other.gif',
    442444);