Changeset 2140414
- Timestamp:
- 08/16/2019 08:32:50 AM (7 years ago)
- Location:
- very-simple-wp-popup/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
admin/vswpp-class-serializer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
very-simple-wp-popup/trunk/README.txt
r2140204 r2140414 35 35 1. screenshot-1.jpg 36 36 2. screenshot-2.jpg 37 3. screenshot-3.jpg38 4. screenshot-4.jpg39 37 40 38 == Changelog == … … 42 40 = 1.2.0 29.07.2019 = 43 41 * Various **bug fixes** 42 = 1.3.0 16.08.2019 = 43 * Various **bug fixes** -
very-simple-wp-popup/trunk/admin/vswpp-class-serializer.php
r2140120 r2140414 35 35 } 36 36 // If the above are valid, sanitize and save the option. 37 if( null !== wp_unslash( $_POST['width']) ) {37 if( null !== sanitize_text_field( wp_unslash( $_POST['width'] ) ) ) { 38 38 //store in one variable 39 if( wp_unslash( $_POST['edit']) == 'null' ) {39 if( sanitize_text_field( wp_unslash( $_POST['edit'] ) ) == 'null' ) { 40 40 $id = uniqid(); 41 41 } else { 42 $id = wp_unslash( $_POST['edit']);42 $id = sanitize_text_field( wp_unslash( $_POST['edit'] ) ); 43 43 } 44 44 … … 60 60 61 61 // If the above are valid, sanitize and delete the option. 62 if( null !== wp_unslash( $_POST['delete']) ) {62 if( null !== sanitize_text_field( wp_unslash( $_POST['delete'] ) ) ) { 63 63 //store in one variable 64 $value = $_POST['delete'];64 $value = sanitize_text_field( wp_unslash( $_POST['delete'] ) ); 65 65 delete_option( 'very_simple_wp_popup_' . $value ); 66 66 } … … 82 82 return false; 83 83 } 84 $field = wp_unslash( $_POST['id-message']);84 $field = sanitize_text_field( wp_unslash( $_POST['id-message'] ) ); 85 85 $action = 'settings-save'; 86 86 return wp_verify_nonce( $field, $action );
Note: See TracChangeset
for help on using the changeset viewer.