403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/conditionals/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/conditionals/old-premium-ai-conditional.php
<?php

namespace Yoast\WP\SEO\Conditionals;

use Yoast\WP\SEO\Helpers\Product_Helper;

/**
 * Conditional that is met when an older Yoast SEO Premium that predates the AI module restructure is active.
 *
 * Used to gate the legacy `src/ai-*` integrations and routes so they only run when an older Premium relies on them.
 */
class Old_Premium_AI_Conditional implements Conditional {

	/**
	 * The Premium version that ships with the new AI module structure.
	 *
	 * @var string
	 */
	private const NEW_AI_STRUCTURE_PREMIUM_VERSION = '27.5-RC0';

	/**
	 * Holds the Product_Helper.
	 *
	 * @var Product_Helper
	 */
	private $product_helper;

	/**
	 * Constructs Old_Premium_AI_Conditional.
	 *
	 * @param Product_Helper $product_helper The Product_Helper.
	 */
	public function __construct( Product_Helper $product_helper ) {
		$this->product_helper = $product_helper;
	}

	/**
	 * Returns whether the legacy AI code paths should load.
	 *
	 * @return bool `true` when Premium is active and predates the AI restructure.
	 */
	public function is_met() {
		if ( ! $this->product_helper->is_premium() ) {
			return false;
		}

		$premium_version = $this->product_helper->get_premium_version();
		if ( $premium_version === null ) {
			return false;
		}

		return \version_compare( $premium_version, self::NEW_AI_STRUCTURE_PREMIUM_VERSION, '<' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit