Skip to content
Snippets Groups Projects
Commit 0fd24393 authored by lucha's avatar lucha
Browse files

load a few JS library locally instead than from googleapis

parent 733b10c8
Branches
Tags
No related merge requests found
......@@ -116,7 +116,6 @@ ricordandosi che ogni file di patch può modificare solo un singolo tema/plugin.
* ```wp-cache.php```: su noblogs abbiamo una versione leggermente modificata di ```wp-cache-config-sample.php``` presente in ```wp-super-cache```. È una cosa che dobbiamo spostare fuori al livello del container docker, o va in qualche modo tenuta qui dentro?
* tutte le patches di wp-cache, che non ho ancora avuto il coraggio di metterci le mani
* ```.htaccess```: anche lui, sta qui o sta in noblogs-docker?
* patch 0115: Wordpress non include più un paio di librerie JS (prototype e scriptacolus), mentre noi le aggiungevamo a mano per poterle caricare in locale.
* Cosa fanno i commit e01b38062c619d3c95d88486e27ee383d42e7002,
6cecf525477f01faa458b7925ead388f7415d030 e 70c22128a3f9fea7793c4dac189280d652fd54f1 esattamente?
......
......@@ -295,7 +295,8 @@
"Do not perform pingbacks and trackbacks when we update via cron": "patches/core/0103-Remove-pingback-trackback.patch",
"Don't leak which blog has been logged into via get_bloginfo()": "patches/core/0110-Don-t-leak-which-blog-has-been-logged-into-via-get_b.patch",
"Do not use fake wordpress version": "patches/core/0153-do-not-use-fake-wordpress-version.patch",
"Stop Wordpress from hardcoding the location of debug.log": "patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch"
"Stop Wordpress from hardcoding the location of debug.log": "patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch",
"Load JS library locally instead than from Googleapis": "patches/core/0155-Removing-reference-to-googleapis-from-wp-includes-up.patch"
}
},
"notification-url": "https://packagist.org/downloads/",
......
......@@ -7,7 +7,8 @@
"Do not perform pingbacks and trackbacks when we update via cron": "patches/core/0103-Remove-pingback-trackback.patch",
"Don't leak which blog has been logged into via get_bloginfo()": "patches/core/0110-Don-t-leak-which-blog-has-been-logged-into-via-get_b.patch",
"Do not use fake wordpress version": "patches/core/0153-do-not-use-fake-wordpress-version.patch",
"Stop Wordpress from hardcoding the location of debug.log": "patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch"
"Stop Wordpress from hardcoding the location of debug.log": "patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch",
"Load JS library locally instead than from Googleapis": "patches/core/0155-Removing-reference-to-googleapis-from-wp-includes-up.patch"
},
"wpackagist-plugin/disable-wordpress-updates": {
"Run update checks during cron": "patches/plugins/disable-wordpress-updates.patch"
......
From 3b9244b4b7552a589edfeebc9008175ba61b0c9a Mon Sep 17 00:00:00 2001
From: lucha <lucha@paranoici.org>
Date: Fri, 28 Dec 2012 16:58:19 +0100
Subject: [PATCH 155/229] Removing reference to googleapis from wp-includes,
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 5725269..558032d 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -705,15 +705,16 @@ function wp_default_scripts( $scripts ) {
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
// WordPress no longer uses or bundles Prototype or script.aculo.us. These are now pulled from an external source.
- $scripts->add( 'prototype', 'https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js', array(), '1.7.1' );
- $scripts->add( 'scriptaculous-root', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js', array( 'prototype' ), '1.9.0' );
- $scripts->add( 'scriptaculous-builder', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js', array( 'scriptaculous-root' ), '1.9.0' );
- $scripts->add( 'scriptaculous-dragdrop', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js', array( 'scriptaculous-builder', 'scriptaculous-effects' ), '1.9.0' );
- $scripts->add( 'scriptaculous-effects', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js', array( 'scriptaculous-root' ), '1.9.0' );
- $scripts->add( 'scriptaculous-slider', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js', array( 'scriptaculous-effects' ), '1.9.0' );
- $scripts->add( 'scriptaculous-sound', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
- $scripts->add( 'scriptaculous-controls', 'https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js', array( 'scriptaculous-root' ), '1.9.0' );
- $scripts->add( 'scriptaculous', false, array( 'scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls' ) );
+ // But A/I does!
+ $scripts->add( 'prototype', '/wp-includes/js/prototype-js-core/prototype.js', array(), '1.7.3');
+ $scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous-js/scriptaculous.js', array('prototype'), '1.9.0');
+ $scripts->add( 'scriptaculous-builder', '/wp-includes/js/scriptaculous-js/builder.js', array('scriptaculous-root'), '1.9.0');
+ $scripts->add( 'scriptaculous-dragdrop', '/wp-includes/js/scriptaculous-js/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.9.0');
+ $scripts->add( 'scriptaculous-effects', '/wp-includes/js/scriptaculous-js/effects.js', array('scriptaculous-root'), '1.9.0');
+ $scripts->add( 'scriptaculous-slider', '/wp-includes/js/scriptaculous-js/slider.js', array('scriptaculous-effects'), '1.9.0');
+ $scripts->add( 'scriptaculous-sound', '/wp-includes/js/scriptaculous-js/sound.js', array( 'scriptaculous-root' ), '1.9.0' );
+ $scripts->add( 'scriptaculous-controls', '/wp-includes/js/scriptaculous-js/controls.js', array('scriptaculous-root'), '1.9.0');
+ $scripts->add( 'scriptaculous', false, array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls') );
// Not used in core, replaced by Jcrop.js.
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array( 'scriptaculous-dragdrop' ) );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment