PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Compatibility/Elementor.php +5 -4 trunk2.6.1 View file →
@@ -70,18 +70,19 @@
70 70 * @return boolean
71 71 */
72 72 public function elementor_builder_is_active() {
73 73 // Check if this is the admin theme builder app.
74 - // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Read-only routing check.
74 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended Simple & direct string comparison.
75 75 if (
76 76 is_admin() &&
77 + // Disable notices as this is a generic string comparison to prevent doing a lot of work.
78 + // phpcs:disable WordPress.Security.NonceVerification.Recommended
77 79 ! empty( $_GET['page'] ) &&
78 - is_string( $_GET['page'] ) &&
79 - 'elementor-app' === sanitize_key( wp_unslash( $_GET['page'] ) )
80 + 'elementor-app' === $_GET['page']
81 + // phpcs:enable WordPress.Security.NonceVerification.Recommended
80 82 ) {
81 83 return true;
82 84 }
83 - // phpcs:enable WordPress.Security.NonceVerification.Recommended
84 85
85 86 if ( ! class_exists( '\Elementor\Plugin' ) || ! isset( \Elementor\Plugin::$instance ) ) {
86 87 return false;
87 88 }