From 53c017408fd9b720c647f1f4102079f1e4607c91 Mon Sep 17 00:00:00 2001 From: selul Date: Wed, 10 Jul 2024 21:21:51 +0300 Subject: [PATCH] removed legacy notice https://github.com/Codeinwp/tweet-old-post/issues/969 --- includes/admin/class-rop-admin.php | 73 +----------------------------- includes/class-rop.php | 2 - 2 files changed, 2 insertions(+), 73 deletions(-) diff --git a/includes/admin/class-rop-admin.php b/includes/admin/class-rop-admin.php index 777c40e8e..9f947d089 100644 --- a/includes/admin/class-rop-admin.php +++ b/includes/admin/class-rop-admin.php @@ -1268,7 +1268,8 @@ public function check_cron_status() { * @access public */ public function rop_wp_cron_notice() { - + //TODO - we need to rework this as the constant is not saying that cron is not working only that the default scheduling is, the user can still use server cron instead. + return; if ( ! defined( 'DISABLE_WP_CRON' ) ) { return; } @@ -1646,77 +1647,7 @@ public function rop_is_edit_post_screen() { } - /** - * Hide and remove remote cron feature. - * - * This feature will be discontinued. - * - * @since 9.0.4 - * @access public - */ - public function rop_remove_remote_cron_notice() { - - $installed_at_version = get_option( 'rop_first_install_version' ); - - if ( empty( $installed_at_version ) ) { - return false; - } - - if ( version_compare( $installed_at_version, '9.0.3', '>' ) ) { - return; - } - - $user_id = get_current_user_id(); - - if ( get_user_meta( $user_id, 'rop-remove-remote-cron-notice-dismissed' ) ) { - return; - } - - $using_remote_cron = (bool) get_option( 'rop_use_remote_cron' ); - - if ( $using_remote_cron ) { - delete_option( 'rop_use_remote_cron' ); - } - $dismiss_link = add_query_arg( - array( - 'rop-remove-remote-cron-notice-dismissed' => '1', - ) - ); - - $rop = __( 'Revive Social: ', 'tweet-old-post' ); - $admin_url = admin_url( 'admin.php?page=TweetOldPost' ); - $notice_text = sprintf( __( 'We\'ve removed the Remote Cron service feature of Revive Social. If you used this option in the past, then please %1$shead to the Revive Social dashboard%2$s to start sharing using the default WordPress cron. If post sharing is not working for you, then please see %3$shere for solutions.%2$s', 'tweet-old-post' ), "", '', "" ); - - $message = << - $rop $notice_text - Dismiss -

-HTML; - - ?> - -
- -
- loader->add_action( 'admin_notices', $plugin_admin, 'rop_cron_event_status_notice' ); $this->loader->add_action( 'admin_notices', $plugin_admin_notices, 'rop_revive_network_nag_delayed' ); - $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_remove_remote_cron_notice' ); - $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_remove_remote_cron' ); $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_linkedin_api_v2_notice' ); $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_linkedin_api_v2_notice' );