| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/genesis/lib/classes/ |
Upload File : |
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\CLI
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/genesis/
*/
/**
* Manage Genesis Framework.
*/
class Genesis_CLI_Command extends WP_CLI_Command {
/**
* Upgrade the database settings for Genesis, usually after an update.
*
* ## EXAMPLES
*
* $ wp genesis upgrade-db
* Success: Genesis database upgraded.
*
* @subcommand upgrade-db
* @alias upgrade_db
*
* @since 2.2.0
* @since 2.4.0 Command now invoked with upgrade-db, not upgrade_db, per WP-CLI standard.
*
* @param array $args Positional arguments.
* @param array $assoc_args Stores all the arguments defined like --key=value or --flag or --no-flag.
*/
public function upgrade_db( $args, $assoc_args ) {
// Disable post-upgrade redirect.
remove_action( 'genesis_upgrade', 'genesis_upgrade_redirect' );
// Call the upgrade function.
genesis_upgrade();
WP_CLI::success( __( 'Genesis database upgraded.', 'genesis' ) );
}
}
WP_CLI::add_command( 'genesis', 'Genesis_CLI_Command' );