Changeset 2191010
- Timestamp:
- 11/12/2019 11:16:00 PM (6 years ago)
- Location:
- lightpost/trunk
- Files:
-
- 3 edited
-
includes/BibleClass.php (modified) (2 diffs)
-
lightpost.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lightpost/trunk/includes/BibleClass.php
r2181964 r2191010 79 79 'name' => sanitize_text_field(sanitize_text_field($_POST['lightpost_name'])), 80 80 'email' => sanitize_text_field(sanitize_text_field($_POST['lightpost_email'])), 81 'classes' => sanitize_text_field(sanitize_text_field($_POST['selected_classes'])),81 'classes' => $this->recursive_sanitize_text_field($_POST['selected_classes']), 82 82 ], 83 83 ]); … … 129 129 return $content; 130 130 } 131 132 private function recursive_sanitize_text_field($array) 133 { 134 foreach ( $array as $key => &$value ) { 135 if ( is_array( $value ) ) { 136 $value = $this->recursive_sanitize_text_field($value); 137 } 138 else { 139 $value = sanitize_text_field( $value ); 140 } 141 } 142 143 return $array; 144 } 131 145 } -
lightpost/trunk/lightpost.php
r2181964 r2191010 7 7 Author: Lightpost 8 8 Author URI: https://lightpost.app 9 Version: 1.0 9 Version: 1.0.1 10 10 Requires PHP: 7.0 11 11 Requires at least: 5.0 -
lightpost/trunk/readme.txt
r2181964 r2191010 36 36 == Changelog == 37 37 38 = 1.0.1 = 39 40 * Fixed Bible class registration not recording class selection properly. 41 38 42 = 1.0.0 = 39 43
Note: See TracChangeset
for help on using the changeset viewer.