← All changes
|
src/ai/consent/user-interface/ai-consent-integration.php
+2
-2
28.0
→
trunk
View file →
| @@ -5,9 +5,8 @@ | ||
| 5 | 5 | namespace Yoast\WP\SEO\AI\Consent\User_Interface; |
| 6 | 6 | |
| 7 | 7 | use WPSEO_Admin_Asset_Manager; |
| 8 | 8 | use Yoast\WP\SEO\AI\Consent\Application\Consent_Endpoints_Repository; |
| 9 | -use Yoast\WP\SEO\Conditionals\New_Premium_Or_Free_AI_Conditional; | |
| 10 | 9 | use Yoast\WP\SEO\Conditionals\User_Profile_Conditional; |
| 11 | 10 | use Yoast\WP\SEO\Helpers\Short_Link_Helper; |
| 12 | 11 | use Yoast\WP\SEO\Helpers\User_Helper; |
| 13 | 12 | use Yoast\WP\SEO\Integrations\Integration_Interface; |
| @@ -50,9 +49,9 @@ | ||
| 50 | 49 | * |
| 51 | 50 | * @return array<string> |
| 52 | 51 | */ |
| 53 | 52 | public static function get_conditionals(): array { |
| 54 | - return [ User_Profile_Conditional::class, New_Premium_Or_Free_AI_Conditional::class ]; | |
| 53 | + return [ User_Profile_Conditional::class ]; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | /** |
| 58 | 57 | * Constructs the class. |
| @@ -99,8 +98,9 @@ | ||
| 99 | 98 | 'hasConsent' => $this->user_helper->get_meta( $this->user_helper->get_current_user_id(), '_yoast_wpseo_ai_consent', true ), |
| 100 | 99 | 'pluginUrl' => \plugins_url( '', \WPSEO_FILE ), |
| 101 | 100 | 'linkParams' => $this->short_link_helper->get_query_params(), |
| 102 | 101 | 'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_paths_array(), |
| 102 | + 'adminUrl' => \admin_url(), | |
| 103 | 103 | ]; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |