Changeset 10338
- Timestamp:
- 10/01/2020 07:31:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/privacy-functions.php
r9775 r10338 25 25 $nonce_action = 'request_' . $type; 26 26 27 if ( empty( $_POST['email'] ) || ! $type || ! in_array( $type, [ 'erase', 'export' ], true ) ) {27 if ( empty( $_POST['email'] ) || ! is_string( $_POST['email'] ) || ! $type || ! in_array( $type, [ 'erase', 'export' ], true ) ) { 28 28 return compact( 'email', 'error_message', 'success', 'nonce_action' ); 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.