This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fix Jetpack Subscriptions block to not uselessly enqueue Thickbox, which in turn enqueues jQuery. | |
*/ | |
function felixarntz_stop_jetpack_subscriptions_from_enqueuing_thickbox_without_any_usage() { | |
if ( wp_script_is( 'jetpack-block-subscriptions' ) && isset( wp_scripts()->registered['jetpack-block-subscriptions'] ) ) { | |
$script = wp_scripts()->registered['jetpack-block-subscriptions']; | |
$index = array_search( 'thickbox', $script->deps, true ); | |
if ( false !== $index ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Prevent direct file access. | |
defined( 'ABSPATH' ) || die; | |
if ( ! class_exists( 'Mai_User_Role_Base' ) ): | |
/** | |
* The User Role Base class. | |
* | |
* @version 0.2.0 |
OlderNewer