summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widget-visibility/widget-conditions.php')
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/widget-visibility/widget-conditions.php b/plugins/jetpack/modules/widget-visibility/widget-conditions.php
index f5e12cbb..d049d368 100644
--- a/plugins/jetpack/modules/widget-visibility/widget-conditions.php
+++ b/plugins/jetpack/modules/widget-visibility/widget-conditions.php
@@ -1,5 +1,6 @@
<?php
+use Automattic\Jetpack\Assets;
/**
* Hide or show widgets conditionally.
@@ -25,7 +26,7 @@ class Jetpack_Widget_Conditions {
wp_style_add_data( 'widget-conditions', 'rtl', 'replace' );
wp_enqueue_script(
'widget-conditions',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/widget-visibility/widget-conditions/widget-conditions.min.js',
'modules/widget-visibility/widget-conditions/widget-conditions.js'
),
@@ -304,7 +305,7 @@ class Jetpack_Widget_Conditions {
<?php _ex( 'is', 'Widget Visibility: {Rule Major [Page]} is {Rule Minor [Search results]}', 'jetpack' ); ?>
- <select class="conditions-rule-minor" name="conditions[rules_minor][]"
+ <select class="conditions-rule-minor" name="conditions[rules_minor][]"
<?php
if ( ! $rule['major'] ) {
?>
@@ -318,7 +319,7 @@ class Jetpack_Widget_Conditions {
<option value="<?php echo esc_attr( $rule['minor'] ); ?>" selected="selected"></option>
</select>
- <span class="conditions-rule-has-children"
+ <span class="conditions-rule-has-children"
<?php
if ( ! $rule['has_children'] ) {
?>