PluginProbe
Stream – Activity Log & Audit Trail / 3.9.2
Stream – Activity Log & Audit Trail v3.9.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | classes/class-install.php +4 -12 trunk3.9.2 View file →
@@ -101,14 +101,10 @@
101 101 return;
102 102 }
103 103
104 104 $update = null;
105 - if (
106 - isset( $_REQUEST['wp_stream_update'], $_REQUEST['_wpnonce'] )
107 - &&
108 - wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ), 'wp_stream_update_db' )
109 - ) {
110 - $update = sanitize_key( wp_unslash( $_REQUEST['wp_stream_update'] ) );
105 + if ( isset( $_REQUEST['wp_stream_update'] ) && wp_verify_nonce( 'wp_stream_update_db' ) ) {
106 + $update = esc_attr( $_REQUEST['wp_stream_update'] );
111 107 }
112 108
113 109 if ( ! $update ) {
114 110 $this->update_required = true;
@@ -224,14 +220,10 @@
224 220 return;
225 221 }
226 222
227 223 $update = null;
228 - if (
229 - isset( $_REQUEST['wp_stream_update'], $_REQUEST['_wpnonce'] )
230 - &&
231 - wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ), 'wp_stream_update_db' )
232 - ) {
233 - $update = sanitize_key( wp_unslash( $_REQUEST['wp_stream_update'] ) );
224 + if ( isset( $_REQUEST['wp_stream_update'] ) && wp_verify_nonce( 'wp_stream_update_db' ) ) {
225 + $update = esc_attr( $_REQUEST['wp_stream_update'] );
234 226 }
235 227
236 228 if ( ! $update ) {
237 229 $this->prompt_update();