PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.7.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.7.0
2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.10.0 All 48 releases
← All changes | includes/core/class-plugin-usage-tracker.php +7 -0 1.26.02.7.0 View file →
@@ -806,8 +806,15 @@
806 806 * @since 1.12.0
807 807 */
808 808 public function deactivate_reasons_form_submit() {
809 809 check_ajax_referer('wpins_deactivation_nonce', 'security');
810 +
811 + // The form is only reachable from the plugins screen; require the same
812 + // capability that screen does so the nonce isn't the only control.
813 + if (!current_user_can('activate_plugins')) {
814 + wp_die('', '', ['response' => 403]);
815 + }
816 +
810 817 if (isset($_POST['values'])) {
811 818 $values = sanitize_text_field(wp_unslash($_POST['values']));
812 819 update_option('wpins_deactivation_reason_' . $this->plugin_name, $values);
813 820 }