Changeset 13115
- Timestamp:
- 02/13/2010 05:49:38 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/ms-edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-edit.php
r13106 r13115 202 202 $count = count( $_POST[ 'option' ] ); 203 203 foreach ( (array) $_POST['option'] as $key => $val ) { 204 if ( $key === 0 )204 if ( $key === 0 || is_array( $val ) ) 205 205 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options 206 206 if ( $c == $count ) 207 update_option( $key, $val);207 update_option( $key, stripslashes( $val ) ); 208 208 else 209 update_option( $key, $val, false ); // no need to refresh blog details yet209 update_option( $key, stripslashes( $val ), false ); // no need to refresh blog details yet 210 210 $c++; 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.