summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/custom-css/custom-css-4.7.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/custom-css/custom-css-4.7.php')
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css-4.7.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/custom-css/custom-css-4.7.php b/plugins/jetpack/modules/custom-css/custom-css-4.7.php
index bb72caec..4a706f6c 100644
--- a/plugins/jetpack/modules/custom-css/custom-css-4.7.php
+++ b/plugins/jetpack/modules/custom-css/custom-css-4.7.php
@@ -1,4 +1,7 @@
<?php
+
+use Automattic\Jetpack\Assets;
+
/**
* Alternate Custom CSS source for 4.7 compat.
*
@@ -11,6 +14,7 @@
* Class Jetpack_Custom_CSS_Enhancements
*/
class Jetpack_Custom_CSS_Enhancements {
+
/**
* Set up the actions and filters needed for our compatability layer on top of core's Custom CSS implementation.
*/
@@ -57,15 +61,19 @@ class Jetpack_Custom_CSS_Enhancements {
wp_register_style( 'jetpack-codemirror', plugins_url( 'custom-css/css/codemirror.css', __FILE__ ), array(), '20120905' );
wp_register_style( 'jetpack-customizer-css', plugins_url( 'custom-css/css/customizer-control.css', __FILE__ ), array(), '20140728' );
wp_register_script( 'jetpack-codemirror', plugins_url( 'custom-css/js/codemirror.min.js', __FILE__ ), array(), '3.16', true );
- $src = Jetpack::get_file_url_for_environment(
+
+ $src = Assets::get_file_url_for_environment(
'_inc/build/custom-css/custom-css/js/core-customizer-css.core-4.9.min.js',
'modules/custom-css/custom-css/js/core-customizer-css.core-4.9.js'
);
- wp_register_script( 'jetpack-customizer-css', $src, array( 'customize-controls', 'underscore' ), JETPACK__VERSION, true );
+ wp_register_script( 'jetpack-customizer-css', $src, array(
+ 'customize-controls',
+ 'underscore'
+ ), JETPACK__VERSION, true );
wp_register_script(
'jetpack-customizer-css-preview',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/custom-css/custom-css/js/core-customizer-css-preview.min.js',
'modules/custom-css/custom-css/js/core-customizer-css-preview.js'
),