Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.217.83
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/www/wp-content/plugins/learndash-woocommerce/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/www/wp-content/plugins/learndash-woocommerce/includes/class-upgrade.php
<?php

/**
 * Upgrade class
 */
class Learndash_Woocommerce_Upgrade
{
    public static function init()
    {
        add_action( 'admin_init', [ __CLASS__, 'check_upgrade' ] );
    }

    public static function check_upgrade()
    {
        if ( did_action( 'admin_init' ) > 1 ) {
            return;
        }

        $saved_version   = get_option( 'learndash_woocommerce_version', false );
        $current_version = LEARNDASH_WOOCOMMERCE_VERSION;

        if ( ! $saved_version || $saved_version < $current_version ) {
            self::upgrade( $saved_version, $current_version );
            update_option( 'learndash_woocommerce_version', $current_version, true );
        }
    }

    public static function upgrade( $from_version, $to_version )
    {
        if ( ( $from_version <= '1.8.0.6' || ! $from_version ) && $to_version >= '1.8.0.7' ) {
            $queue = get_option( 'learndash_woocommerce_silent_course_enrollment_queue', [] );
            // Delete first so autoload value can be updated in DB
            delete_option( 'learndash_woocommerce_silent_course_enrollment_queue' );

            update_option( 'learndash_woocommerce_silent_course_enrollment_queue', $queue, false );
        }
    }
}

Learndash_Woocommerce_Upgrade::init();

Youez - 2016 - github.com/yon3zu
LinuXploit