diff --git a/.changeset/red-dots-juggle.md b/.changeset/red-dots-juggle.md new file mode 100644 index 000000000..1c4e82be8 --- /dev/null +++ b/.changeset/red-dots-juggle.md @@ -0,0 +1,5 @@ +--- +'@faustwp/wordpress-plugin': minor +--- + +The default settings for `enable_image_source` has been changed to "on" for new installs. diff --git a/plugins/faustwp/includes/settings/functions.php b/plugins/faustwp/includes/settings/functions.php index f92fde50d..dda231956 100644 --- a/plugins/faustwp/includes/settings/functions.php +++ b/plugins/faustwp/includes/settings/functions.php @@ -159,6 +159,7 @@ function maybe_set_default_settings() { faustwp_update_setting( 'disable_theme', '0' ); faustwp_update_setting( 'enable_rewrites', '1' ); faustwp_update_setting( 'enable_redirects', '1' ); + faustwp_update_setting( 'enable_image_source', '1' ); // Force WP to regenerate rewrite rules without calling flush_rewrite_rules which breaks // things when used inside of `switch_to_blog()`. @@ -191,4 +192,3 @@ function get_icon( $icon ) { return ''; } - diff --git a/plugins/faustwp/tests/acceptance/SettingsCest.php b/plugins/faustwp/tests/acceptance/SettingsCest.php index 4c7ff6be2..024314e68 100644 --- a/plugins/faustwp/tests/acceptance/SettingsCest.php +++ b/plugins/faustwp/tests/acceptance/SettingsCest.php @@ -37,7 +37,7 @@ public function i_can_see_the_default_settings(AcceptanceTester $I) $I->dontSeeCheckboxIsChecked('#disable_theme'); $I->seeCheckboxIsChecked('#enable_rewrites'); $I->seeCheckboxIsChecked('#enable_redirects'); - $I->dontSeeCheckboxIsChecked('#enable_image_source'); + $I->seeCheckboxIsChecked('#enable_image_source'); } /**