Skip to content

Commit

Permalink
fix remote files calling
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jun 14, 2022
1 parent a556568 commit 2a2b525
Show file tree
Hide file tree
Showing 12 changed files with 5,827 additions and 300 deletions.
1,225 changes: 1,225 additions & 0 deletions assets/css/jquery-ui-styles/1.11.4/jquery-ui.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/jquery-ui-styles/1.11.4/jquery-ui.min.css

Large diffs are not rendered by default.

1,311 changes: 1,311 additions & 0 deletions assets/css/jquery-ui-styles/1.12.1/jquery-ui.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/jquery-ui-styles/1.12.1/jquery-ui.min.css

Large diffs are not rendered by default.

1,314 changes: 1,314 additions & 0 deletions assets/css/jquery-ui-styles/1.13.0/jquery-ui.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/jquery-ui-styles/1.13.0/jquery-ui.min.css

Large diffs are not rendered by default.

1,314 changes: 1,314 additions & 0 deletions assets/css/jquery-ui-styles/1.13.1/jquery-ui.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/css/jquery-ui-styles/1.13.1/jquery-ui.min.css

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions includes/classes/wp-maintenance-mode-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ public function enqueue_admin_styles() {
if ( $this->plugin_screen_hook_suffix === $screen->id ) {
$wp_scripts = wp_scripts();
$ui = $wp_scripts->query( 'jquery-ui-core' );

wp_enqueue_style( $this->plugin_slug . '-admin-jquery-ui-styles', '//code.jquery.com/ui/' . ( ! empty( $ui->ver ) ? $ui->ver : '1.11.4' ) . '/themes/smoothness/jquery-ui' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
$allowed_versions = [
'1.11.4' => true,
'1.12.1' => true,
'1.13.0' => true,
'1.13.1' => true,
];
wp_enqueue_style( $this->plugin_slug . '-admin-jquery-ui-styles', WPMM_CSS_URL . 'jquery-ui-styles/' . ( ! empty( $ui->ver ) ? ( isset( $allowed_versions[ $ui->ver ] ) ? $ui->ver : '1.13.1' ) : '1.11.4' ) . '/jquery-ui' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
wp_enqueue_style( $this->plugin_slug . '-admin-chosen', WPMM_CSS_URL . 'chosen' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
wp_enqueue_style( $this->plugin_slug . '-admin-timepicker-addon-script', WPMM_CSS_URL . 'jquery-ui-timepicker-addon' . WPMM_ASSETS_SUFFIX . '.css', array(), WP_Maintenance_Mode::VERSION );
wp_enqueue_style( $this->plugin_slug . '-admin-styles', WPMM_CSS_URL . 'style-admin' . WPMM_ASSETS_SUFFIX . '.css', array( 'wp-color-picker' ), WP_Maintenance_Mode::VERSION );
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/wp-maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ public function add_js_files() {
$wp_scripts = wp_scripts();

$scripts = array(
'jquery' => ! empty( $wp_scripts->registered['jquery-core'] ) ? site_url( $wp_scripts->registered['jquery-core']->src ) : '//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery' . WPMM_ASSETS_SUFFIX . '.js',
'jquery' => site_url( "/wp-includes/js/jquery/jquery" . WPMM_ASSETS_SUFFIX . ".js" ),
'fitvids' => WPMM_JS_URL . 'jquery.fitvids' . WPMM_ASSETS_SUFFIX . '.js',
'frontend' => WPMM_JS_URL . 'scripts' . WPMM_ASSETS_SUFFIX . '.js?ver=' . self::VERSION,
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cssnano": "^4.1.11",
"grunt": "^1.4.0",
"grunt-contrib-jshint": "^2.1.0",
"grunt-contrib-uglify-es": "git://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
"grunt-contrib-uglify-es": "^3.3.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-postcss": "^0.9.0",
"grunt-version": "^3.0.0",
Expand Down
922 changes: 626 additions & 296 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 2a2b525

Please sign in to comment.