HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/imagify/inc/3rd-party/yoast-seo.php
<?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;