← All changes
|
src/conditionals/admin/licenses-page-conditional.php
+2
-1
18.5.1
→
trunk
View file →
| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Yoast\WP\SEO\Conditionals\Admin; |
| 4 | 4 | |
| 5 | 5 | use Yoast\WP\SEO\Conditionals\Conditional; |
| 6 | +use Yoast\WP\SEO\Plans\User_Interface\Plans_Page_Integration; | |
| 6 | 7 | |
| 7 | 8 | /** |
| 8 | 9 | * Conditional that is only met when current page is the tools page. |
| 9 | 10 | */ |
| @@ -21,9 +22,9 @@ | ||
| 21 | 22 | return false; |
| 22 | 23 | } |
| 23 | 24 | |
| 24 | 25 | // phpcs:ignore WordPress.Security.NonceVerification -- This is not a form. |
| 25 | - if ( isset( $_GET['page'] ) && $_GET['page'] === 'wpseo_licenses' ) { | |
| 26 | + if ( isset( $_GET['page'] ) && $_GET['page'] === Plans_Page_Integration::PAGE ) { | |
| 26 | 27 | return true; |
| 27 | 28 | } |
| 28 | 29 | |
| 29 | 30 | return false; |