WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcalosangeles/public_html/wp-content/plugins/autoupdater/lib/Command/Popupmaker.php
<?php
defined('AUTOUPDATER_LIB') or die;

class AutoUpdater_Command_Popupmaker extends AutoUpdater_Command_Base
{
    /**
     * Commands for Popup Maker
     *
     * ## OPTIONS
     *
     * <command>
     * : Specify the sub-command.
     * ---
     * default: upgrade
     * options:
     *   - upgrade
     *
     * @when before_wp_load
     */
    public function __invoke($args, $assoc_args)
    {
        if (empty($args)) {
            $args[0] = 'upgrade';
        }

        if ($args[0] == 'upgrade') {
            $this->pumUpgrade();
            return;
        }
    }

    protected function pumUpgrade()
    {
        WP_CLI::line('Upgrading Popup Maker...');

        /** @var AutoUpdater_Task_DatabaseUpdatePum $task */
        $task = AutoUpdater_Task::getInstance('DatabaseUpdatePum');
        $result = $task->doTask();

        if ($result['success'] === false) {
            // Failed to upgrade PUM
            WP_CLI::error($result['message']);
            return;
        }

        // PUM has been successfully upgraded
        WP_CLI::success($result['message']);
    }

    public static function beforeInvoke()
    {
    }
}