| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | { |
| 19 | 19 | $this->resetter = new DB_Resetter(); |
| 20 | 20 | $this->version = $version; |
| 21 | 21 | |
| 22 | - $this->set_request($_REQUEST); | |
| 22 | + $this->set_request($_REQUEST); //phpcs:ignore | |
| 23 | 23 | $this->set_view_variables(); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | private function set_request(array $request) |
| @@ -149,9 +149,9 @@ | ||
| 149 | 149 | } |
| 150 | 150 | </style>'; |
| 151 | 151 | |
| 152 | 152 | echo '<div style="margin: 20px; color:#444;">'; |
| 153 | - echo 'If things are not done in a minute <a target="_parent" href="' . admin_url('plugin-install.php?s=wp-reset&tab=search&type=term') . '">install the plugin manually via Plugins page</a><br><br>'; | |
| 153 | + echo 'If things are not done in a minute <a target="_parent" href="' . esc_url(admin_url('plugin-install.php?s=wp-reset&tab=search&type=term')) . '">install the plugin manually via Plugins page</a><br><br>'; | |
| 154 | 154 | echo 'Starting ...<br><br>'; |
| 155 | 155 | |
| 156 | 156 | wp_cache_flush(); |
| 157 | 157 | $upgrader = new Plugin_Upgrader(); |
| @@ -176,9 +176,9 @@ | ||
| 176 | 176 | echo '<script>setTimeout(function() { top.location = "tools.php?page=wp-reset"; }, 1000);</script>'; |
| 177 | 177 | echo '<br>If you are not redirected in a few seconds - <a href="tools.php?page=wp-reset" target="_parent">click here</a>.'; |
| 178 | 178 | } |
| 179 | 179 | } else { |
| 180 | - echo 'Could not install WP Reset. You\'ll have to <a target="_parent" href="' . admin_url('plugin-install.php?s=wp-reset&tab=search&type=term') . '">download and install manually</a>.'; | |
| 180 | + echo 'Could not install WP Reset. You\'ll have to <a target="_parent" href="' . esc_url(admin_url('plugin-install.php?s=wp-reset&tab=search&type=term')) . '">download and install manually</a>.'; | |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | echo '</div>'; |
| 184 | 184 | } // install_wpr |