PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.1
Post Grid Gutenberg Blocks – PostX v5.1.1
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
← All changes | includes/durbin/class-our-plugins.php +2 -2 5.0.37 → 5.1.1 View file →
@@ -22,11 +22,11 @@
22 22 */
23 23 public function ultp_install_plugin_callback() {
24 24
25 25 $nonce = isset( $_POST['wpnonce'] ) ? sanitize_key( wp_unslash( $_POST['wpnonce'] ) ) : '';
26 - $plugin = isset( $_POST['plugin'] ) ? $_POST['plugin'] : '';
26 + $plugin = isset( $_POST['plugin'] ) ? sanitize_key( wp_unslash( $_POST['plugin'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce verified just below, before $plugin is used.
27 27
28 - if ( ! wp_verify_nonce( $nonce, 'ultp-nonce' ) || ! current_user_can( 'manage_options' ) ) {
28 + if ( ! wp_verify_nonce( $nonce, 'ultp-admin-nonce' ) || ! current_user_can( 'manage_options' ) ) {
29 29 wp_send_json_error( array( 'message' => 'No plugin specified' ) );
30 30
31 31 }
32 32