Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/seo-by-rank-math/includes/traits/class-wizard.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * The Wizard pages helper.
4 + *
5 + * @since 1.0.3
6 + * @package RankMath
7 + * @subpackage RankMath\Traits
8 + * @author Rank Math <support@rankmath.com>
9 + */
10 +
11 + namespace RankMath\Traits;
12 +
13 + use RankMath\Helper as GlobalHelper;
14 + use RankMath\Helpers\Security;
15 +
16 + defined( 'ABSPATH' ) || exit;
17 +
18 + /**
19 + * Wizard class.
20 + */
21 + trait Wizard {
22 + /**
23 + * Is the page is current page.
24 + *
25 + * @return boolean
26 + */
27 + public function is_current_page() {
28 + $page = isset( $_GET['page'] ) && ! empty( $_GET['page'] ) ? filter_input( INPUT_GET, 'page' ) : false;
29 + return $page === $this->slug;
30 + }
31 + }
32 +