| 1 | Index: wp-admin/ms-edit.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/ms-edit.php (revision 15339) |
|---|
| 4 | +++ wp-admin/ms-edit.php (working copy) |
|---|
| 5 | @@ -220,6 +220,7 @@ |
|---|
| 6 | $allowedthemes[$theme] = true; |
|---|
| 7 | } |
|---|
| 8 | } |
|---|
| 9 | + |
|---|
| 10 | update_option( 'allowedthemes', $allowedthemes ); |
|---|
| 11 | |
|---|
| 12 | // options |
|---|
| 13 | @@ -227,7 +228,7 @@ |
|---|
| 14 | $c = 1; |
|---|
| 15 | $count = count( $_POST['option'] ); |
|---|
| 16 | foreach ( (array) $_POST['option'] as $key => $val ) { |
|---|
| 17 | - if ( $key === 0 || is_array( $val ) ) |
|---|
| 18 | + if ( $key === 0 || $key == 'allowedthemes' || is_array( $val ) ) |
|---|
| 19 | continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options |
|---|
| 20 | if ( $c == $count ) |
|---|
| 21 | update_option( $key, stripslashes( $val ) ); |
|---|