| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * Bing Instant Indexing Console page contents. |
| 5 | 5 | * |
| 6 | 6 | * @package Bing Instant Indexing |
| 7 | 7 | */ |
| 8 | + | |
| 9 | +if (!defined('ABSPATH')) { | |
| 10 | + exit; | |
| 11 | +} | |
| 8 | 12 | ?> |
| 9 | 13 | |
| 10 | 14 | <?php if (!$this->get_setting('api_key')) { ?> |
| 11 | 15 | <div class="dashboard-card"> |
| @@ -25,10 +29,10 @@ | ||
| 25 | 29 | } ?> |
| 26 | 30 | |
| 27 | 31 | <?php |
| 28 | 32 | $urls = home_url('/'); |
| 29 | - if (isset($_GET['posturl'])) { | |
| 30 | - $urls = esc_url_raw(wp_unslash($_GET['posturl'])); | |
| 33 | + if (isset($_GET['posturl'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only form prefill, the submit verifies its own nonce | |
| 34 | + $urls = esc_url_raw(wp_unslash($_GET['posturl'])); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only form prefill, the submit verifies its own nonce | |
| 31 | 35 | } |
| 32 | 36 | |
| 33 | 37 | ?> |
| 34 | 38 | <form id="metasync-bing-form" class="wpform" method="post"> |