Merged in release/release-1.09 (pull request #10)

Release/release 1.09

* Install missing plugins 
* rs set to 1

* rebase pantheon for aws

* rebase pantheon for aws

* prod config change

* prod config change

* fix campaing issue

* revert


Approved-by: Jay Sharma
This commit is contained in:
Rachit Bhargava
2023-12-27 20:55:58 +00:00
committed by Jay Sharma
parent 779393381f
commit 22f10a9edd
2154 changed files with 22313 additions and 209875 deletions

View File

@@ -2,8 +2,6 @@
namespace Yoast\WP\SEO\User_Profiles_Additions\User_Interface;
use WPSEO_Admin_Asset_Manager;
use Yoast\WP\SEO\Helpers\Product_Helper;
use Yoast\WP\SEO\Conditionals\User_Profile_Conditional;
use Yoast\WP\SEO\Integrations\Integration_Interface;
@@ -12,34 +10,6 @@ use Yoast\WP\SEO\Integrations\Integration_Interface;
*/
class User_Profiles_Additions_Ui implements Integration_Interface {
/**
* Holds the Product_Helper.
*
* @var Product_Helper
*/
private $product_helper;
/**
* Holds the WPSEO_Admin_Asset_Manager.
*
* @var WPSEO_Admin_Asset_Manager
*/
private $asset_manager;
/**
* Constructs Academy_Integration.
*
* @param WPSEO_Admin_Asset_Manager $asset_manager The WPSEO_Admin_Asset_Manager.
* @param Product_Helper $product_helper The Product_Helper.
*/
public function __construct(
WPSEO_Admin_Asset_Manager $asset_manager,
Product_Helper $product_helper
) {
$this->asset_manager = $asset_manager;
$this->product_helper = $product_helper;
}
/**
* Returns the conditionals based in which this loadable should be active.
*
@@ -61,24 +31,13 @@ class User_Profiles_Additions_Ui implements Integration_Interface {
\add_action( 'edit_user_profile', [ $this, 'add_hook_to_user_profile' ] );
}
/**
* Enqueues the assets needed for this integration.
*
* @return void
*/
public function enqueue_assets() {
if ( $this->product_helper->is_premium() ) {
$this->asset_manager->enqueue_style( 'introductions' );
}
}
/**
* Add the inputs needed for SEO values to the User Profile page.
*
* @param WP_User $user User instance to output for.
*/
public function add_hook_to_user_profile( $user ) {
$this->enqueue_assets();
echo '<div class="yoast yoast-settings">';
/**