HEX
Server: Apache
System: Linux p3plzcpnl507875.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: brisketersmhw (2755199)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/brisketersmhw/public_html/inactive/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;