Merged in feature/Plugin-updates (pull request #19)

Updated plugins

* Updated plugins
This commit is contained in:
Tony Volpe
2024-01-10 21:13:38 +00:00
parent 768ebbdc75
commit 14f187dd80
168 changed files with 9219 additions and 9861 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace Yoast\WP\SEO\Integrations\Alerts;
/**
* Trustpilot_Review_Notification class.
*/
class Trustpilot_Review_Notification extends Abstract_Dismissable_Alert {
/**
* Holds the alert identifier.
*
* @var string
*/
protected $alert_identifier = 'trustpilot-review-notification';
}

View File

@@ -613,9 +613,25 @@ class Elementor implements Integration_Interface {
$values['cornerstoneActive'] = false;
}
$values['elementorMarkerStatus'] = $this->is_highlighting_available() ? 'enabled' : 'hidden';
return $values;
}
/**
* Checks whether the highlighting functionality is available for Elementor:
* - in Free it's always available (as an upsell).
* - in Premium it's available as long as the version is 21.8-RC0 or above.
*
* @return bool Whether the highlighting functionality is available.
*/
private function is_highlighting_available() {
$is_premium = \YoastSEO()->helpers->product->is_premium();
$premium_version = \YoastSEO()->helpers->product->get_premium_version();
return ! $is_premium || \version_compare( $premium_version, '21.8-RC0', '>=' );
}
/**
* Prepares the replace vars for localization.
*