3.15.3
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Compatibility with Premium SEO Pack
|
||||
*
|
||||
* @link http://premiumseopack.com
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
if ( class_exists( 'psp' ) ) {
|
||||
|
||||
/**
|
||||
* Dequeue the stylesheet of Premium SEO Pack on WP Rocket settings page.
|
||||
*
|
||||
* @since 2.11.6
|
||||
* @author Arun Basil Lal
|
||||
*/
|
||||
function rocket_dequeue_premium_seo_pack_stylesheet() {
|
||||
|
||||
// Retun on all pages but WP Rocket settings page.
|
||||
$screen = get_current_screen();
|
||||
if ( 'settings_page_wprocket' !== $screen->id ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Dequeueing this stylesheet unfreezes WP Rocket.
|
||||
wp_dequeue_style( 'psp-main-style' );
|
||||
}
|
||||
add_action( 'admin_print_styles', 'rocket_dequeue_premium_seo_pack_stylesheet', 11 );
|
||||
}
|
||||
Reference in New Issue
Block a user