PluginProbe
Patchstack – WordPress & Plugins Security / 2.1.2
Patchstack – WordPress & Plugins Security v2.1.2
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/multisite.php +2 -4 2.1.202.1.2 View file →
@@ -135,16 +135,14 @@
135 135 */
136 136 private function save_options( $options ) {
137 137 if ( isset( $_GET['page'] ) && $_GET['page'] == 'patchstack-multisite-settings' ) {
138 138 foreach ( $options as $option ) {
139 - $value = isset( $_POST[ $option ] ) ? $_POST[ $option ] : 0;
140 - $value = map_deep($value, 'wp_filter_nohtml_kses');
139 + $value = isset( $_POST[ $option ] ) ? wp_filter_nohtml_kses( $_POST[ $option ] ) : 0;
141 140 update_site_option( $option, $value );
142 141 }
143 142 } else {
144 143 foreach ( $options as $option ) {
145 - $value = isset( $_POST[ $option ] ) ? $_POST[ $option ] : 0;
146 - $value = map_deep($value, 'wp_filter_nohtml_kses');
144 + $value = isset( $_POST[ $option ] ) ? wp_filter_nohtml_kses( $_POST[ $option ] ) : 0;
147 145 update_option( $option, $value );
148 146 }
149 147 }
150 148 }