rebase from live enviornment
This commit is contained in:
25
wp/plugins/imagify/inc/3rd-party/wp-cloudflare-super-page-cache.php
vendored
Normal file
25
wp/plugins/imagify/inc/3rd-party/wp-cloudflare-super-page-cache.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
|
||||
|
||||
add_action( 'admin_enqueue_scripts', function( $hook_suffix ) {
|
||||
|
||||
$imagify_admin_pages = array(
|
||||
'media_page_imagify-bulk-optimization',
|
||||
'settings_page_imagify',
|
||||
'media_page_imagify-files',
|
||||
'nextgen-gallery_page_imagify-ngg-bulk-optimization',
|
||||
);
|
||||
|
||||
if (
|
||||
! is_admin()
|
||||
||
|
||||
! class_exists( 'SWCFPC_Backend' )
|
||||
||
|
||||
! in_array( $hook_suffix, $imagify_admin_pages, true )
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_deregister_script( 'swcfpc_sweetalert_js' );
|
||||
|
||||
}, 100 );
|
||||
Reference in New Issue
Block a user