get( 'fixes ', 'newWindowWarning' ); if ( isset( $fix_new_window_warning['status'] ) && $fix_new_window_warning['status'] ) { // unregister the anww script if it's present, this fix supercedes it. if ( class_exists( '\ANWW' ) && defined( 'ANWW_VERSION' ) ) { add_action( 'wp_enqueue_scripts', function () { wp_deregister_script( 'anww' ); wp_deregister_style( 'anww' ); }, PHP_INT_MAX ); } } add_action( 'wp_head', array( $this, 'add_styles' ) ); } /** * Add the styles for the new window warning. */ public function add_styles() { ?>