Skip to content

Commit

Permalink
The settings were not saved correctly in multisite installations
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Jul 14, 2024
1 parent 6356c8a commit 2e10a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Release date: 2024-07-15
* The 'Getting Started' section the setup wizard has been updated with new content.

#### Bugfixes:
* The settings were not saved correctly in multisite installations.
* An upgrade function was causing problems for multisite installations leading lost configuration.

#### Other:
Expand Down
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function set( array $options, bool $first_install = false, bool $overwrit
if ( $first_install ) {
\add_option( self::OPTION_NAME, $options, '', true );
} elseif ( is_multisite() ) {
\update_blog_option( get_main_site_id(), self::OPTION_NAME, $options );
\update_blog_option( get_current_blog_id(), self::OPTION_NAME, $options );
} else {
\update_option( self::OPTION_NAME, $options, true );
}
Expand Down

0 comments on commit 2e10a9b

Please sign in to comment.