Skip to content

Commit

Permalink
Add in_site_migration_flow site option
Browse files Browse the repository at this point in the history
  • Loading branch information
markbiek committed Apr 18, 2024
1 parent c3e4df9 commit 49dafba
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
),

'request_format' => array(
'in_site_migration_flow' => '(bool) Whether the site is currently in the Site Migration signup flow.',
'blogname' => '(string) Blog name',
'blogdescription' => '(string) Blog description',
'default_pingback_flag' => '(bool) Notify blogs linked from article?',
Expand Down Expand Up @@ -468,6 +469,7 @@ function ( $newsletter_category ) {
'enable_blocks_comments' => (bool) get_option( 'enable_blocks_comments', true ),
'highlander_comment_form_prompt' => $this->get_highlander_comment_form_prompt_option(),
'jetpack_comment_form_color_scheme' => (string) get_option( 'jetpack_comment_form_color_scheme' ),
'in_site_migration_flow' => (bool) get_option( 'in_site_migration_flow', 0 ),
);

if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
Expand Down Expand Up @@ -1135,6 +1137,12 @@ function ( $category_id ) {

break;

case 'in_site_migration_flow': {
update_option( 'in_site_migration_flow', (int) (bool) $value );
$updated[ $key ] = (int) (bool) $value;
break;
}

default:
// allow future versions of this endpoint to support additional settings keys.
if ( has_filter( 'site_settings_endpoint_update_' . $key ) ) {
Expand Down

0 comments on commit 49dafba

Please sign in to comment.