Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -20,7 +20,7 @@ class Yoast_Admin_Conditional implements Conditional {
|
||||
/**
|
||||
* Constructs the conditional.
|
||||
*
|
||||
* @param \Yoast\WP\SEO\Helpers\Current_Page_Helper $current_page_helper The current page helper.
|
||||
* @param Current_Page_Helper $current_page_helper The current page helper.
|
||||
*/
|
||||
public function __construct( Current_Page_Helper $current_page_helper ) {
|
||||
$this->current_page_helper = $current_page_helper;
|
||||
|
||||
@@ -36,7 +36,7 @@ class Should_Index_Links_Conditional implements Conditional {
|
||||
/**
|
||||
* Filter: 'wpseo_should_index_links' - Allows disabling of Yoast's links indexation.
|
||||
*
|
||||
* @api bool To disable the indexation, return false.
|
||||
* @param bool $enable To disable the indexation, return false.
|
||||
*/
|
||||
return \apply_filters( 'wpseo_should_index_links', $should_index_links );
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class Elementor_Edit_Conditional implements Conditional {
|
||||
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
|
||||
if ( isset( $_GET['action'] ) && \is_string( $_GET['action'] ) ) {
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
|
||||
$get_action = \wp_unslash( $_GET['action'] );
|
||||
if ( $pagenow === 'post.php' && $get_action === 'elementor' ) {
|
||||
return true;
|
||||
@@ -29,7 +29,7 @@ class Elementor_Edit_Conditional implements Conditional {
|
||||
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reason: We are not processing form information.
|
||||
if ( isset( $_POST['action'] ) && \is_string( $_POST['action'] ) ) {
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information, We are only strictly comparing.
|
||||
$post_action = \wp_unslash( $_POST['action'] );
|
||||
return \wp_doing_ajax() && $post_action === 'wpseo_elementor_save';
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class WPML_WPSEO_Conditional implements Conditional {
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
const PATH_TO_WPML_WPSEO_PLUGIN_FILE = 'wp-seo-multilingual/plugin.php';
|
||||
public const PATH_TO_WPML_WPSEO_PLUGIN_FILE = 'wp-seo-multilingual/plugin.php';
|
||||
|
||||
/**
|
||||
* Returns whether or not the Yoast SEO Multilingual plugin is active.
|
||||
|
||||
@@ -13,6 +13,6 @@ class WP_CRON_Enabled_Conditional implements Conditional {
|
||||
* @return bool True when WP_CRON is enabled.
|
||||
*/
|
||||
public function is_met() {
|
||||
return ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON );
|
||||
return ! ( \defined( 'DISABLE_WP_CRON' ) && \DISABLE_WP_CRON );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user