rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -0,0 +1,24 @@
<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
if ( defined( 'WPSEO_VERSION' ) && is_admin() && ! wp_doing_ajax() ) :
add_action( 'wp_print_scripts', '_imagify_dequeue_yoastseo_script' );
/**
* Remove Yoast SEO bugged script.
*
* @since 1.4.1
*/
function _imagify_dequeue_yoastseo_script() {
if ( ! function_exists( 'get_current_screen' ) ) {
return;
}
$current_screen = get_current_screen();
if ( isset( $current_screen ) && 'post' === $current_screen->base && 'attachment' === $current_screen->post_type ) {
wp_dequeue_script( 'yoast-seo' );
wp_deregister_script( 'yoast-seo' );
}
}
endif;