Skip to content

Commit

Permalink
Merge pull request #947 from publishpress/hotfix-946-network-activate…
Browse files Browse the repository at this point in the history
…d-setting-scope-updates

Network Activation: Setting Scope update fails
  • Loading branch information
agapetry authored Mar 23, 2023
2 parents aeb8a52 + dc9b204 commit 96f5d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submittee_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ function default_options( $sitewide = false, $customize_defaults = false ) {
function update_sitewide() {
check_admin_referer( 'rvy-update-options' );

$reviewed_options = isset($_POST['rvy_all_movable_options']) ? array_map('sanitize_key', explode(',', sanitize_text_field($_POST['rvy_all_movable_options']))) : array();
$reviewed_options = isset($_POST['rvy_all_movable_options']) ? array_map('sanitize_key', explode(',', $_POST['rvy_all_movable_options'])) : array();

$options_sitewide = isset($_POST['rvy_options_sitewide']) ? array_map('sanitize_key', (array) sanitize_text_field($_POST['rvy_options_sitewide'])) : array();
$options_sitewide = isset($_POST['rvy_options_sitewide']) ? array_map('sanitize_key', (array) $_POST['rvy_options_sitewide']) : array();

update_site_option( "rvy_options_sitewide_reviewed", $reviewed_options );
update_site_option( "rvy_options_sitewide", $options_sitewide );
Expand Down

0 comments on commit 96f5d6d

Please sign in to comment.