Custom WordPress Core upgrade through wp-cli

This is a php script that can execute wp-cli, Keep the file in wp-admin/ folder and visit www.example-wordpress.com/wp-admin/execute_cli.php to run the script. This is just for test purposes and not a good way to use. execute_cli.php <?php error_reporting(E_ALL | E_STRICT); ini_set(‘display_errors’, ‘1’); echo “<PRE>\n”; if(!defined(‘STDIN’)) define(‘STDIN’, fopen(‘php://stdin’, ‘r’)); if(!defined(‘STDOUT’)) define(‘STDOUT’, fopen(‘php://stdout’, ‘w’)); if(!defined(‘STDERR’)) define(‘STDERR’, fopen(‘php://stdout’, … Read more