Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 3.1.13 update step from lifecycle #2736

Merged
merged 2 commits into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions includes/Lifecycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function __construct( Framework\Plugin $plugin ) {
'2.0.4',
'2.4.0',
'2.5.0',
'3.1.13',
'3.2.0'
);
}
Expand Down Expand Up @@ -310,22 +309,9 @@ protected function upgrade_to_2_5_0() {
as_unschedule_all_actions( Products\Feed::GENERATE_FEED_ACTION );
}

protected function upgrade_to_3_1_13() {
$notice_slug = 'facebook_messenger_deprecation_warning';
$is_messenger_enabled = get_option( \WC_Facebookcommerce_Integration::SETTING_ENABLE_MESSENGER, 'no' ) === 'yes';

// Add Messenger deprecation notice.
if ( $is_messenger_enabled && class_exists( 'WC_Admin_Notices' ) ) {
\WC_Admin_Notices::add_custom_notice(
$notice_slug,
Admin\Settings_Screens\Messenger::get_deprecation_message()
);

}
}

/**
* Removes the messenger deprecation notice on upgrade to 3.2.0.
* Removes the messenger settings and deprecation notice on upgrade to 3.2.0.
* Note: deprecation notice upgrade step removed in 3.2.1.
*
* @since 3.2.0
*/
Expand Down
Loading