action .= $action; parent::__construct(); if ( ! wp_next_scheduled( $this->cron_hook_identifier ) ) { $job_info = array( 'start_time' => current_time( 'timestamp' ), // phpcs:ignore 'processed_events_count' => 0, 'batch_size' => 50, 'connection' => $action, ); $this->task( $job_info ); } } /** * Displays an admin notice if a metadata migration is in progress. */ public static function maybe_display_progress_admin_notice() { if ( ! is_user_logged_in() ) { // Don't show to anonymous users (obviously). return; } $existing_info = WP_Helper::get_global_option( self::OPTION_NAME_MIGRATION_INFO, array() ); if ( empty( $existing_info ) ) { return; } $current_user = get_userdata( get_current_user_id() ); if ( false === $current_user ) { // Bail if there is a problem retrieving the current user. return; } $is_admin = in_array( 'administrator', $current_user->roles, true ) || ( function_exists( 'is_super_admin' ) && is_super_admin( $current_user->ID ) ); if ( ! $is_admin ) { // Don't show to admin users. return; } ?>
UPGRADE notice: WP Activity Log is updating the database tables where the activity log is stored. The duration of this process varies depending on the size of the activity log. The upgrade is running in the background and won\'t affect your website. For more information please refer to this knowledge base entry.', 'wp-security-audit-log' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>