diff --git a/inc/3rd-party/yoast-seo.php b/inc/3rd-party/yoast-seo.php index a5edfb79f..54a719691 100755 --- a/inc/3rd-party/yoast-seo.php +++ b/inc/3rd-party/yoast-seo.php @@ -10,6 +10,9 @@ * @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 ) {