Skip to content

Commit

Permalink
JS lint & PHP cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-elementor committed Sep 27, 2023
1 parent 2340e52 commit a0cefee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion assets/dev/js/admin/pages/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
Spinner,
ToggleControl,
SnackbarList,
Dashicon,
} from '@wordpress/components';

const Notices = () => {
Expand Down
4 changes: 2 additions & 2 deletions includes/settings/settings-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,15 @@ public function render_tweaks() {
$option = get_option( $this->settings_group . '_jquery_migrate' );
if ( isset( $option ) && ( 'true' === $option ) ) {
add_action( 'wp_enqueue_scripts', function() {
wp_deregister_script('jquery-migrate');
wp_deregister_script( 'jquery-migrate' );
}, 99 );
}

$option = get_option( $this->settings_group . '_oembed_script' );
if ( isset( $option ) && ( 'true' === $option ) ) {
remove_action( 'wp_head', 'wp_oembed_add_host_js' );
add_action( 'wp_enqueue_scripts', function() {
wp_deregister_script('wp-embed');
wp_deregister_script( 'wp-embed' );
}, 99 );
}

Expand Down

0 comments on commit a0cefee

Please sign in to comment.