Make WordPress Core

Ticket #30476: test.php

File test.php, 360 bytes (added by Briareos, 9 years ago)

Script to run from a WordPress root to reproduce the issue

Line 
1<?php
2
3require_once __DIR__.'/wp-load.php';
4require_once ABSPATH.'wp-admin/includes/class-wp-upgrader.php';
5require_once ABSPATH.'wp-admin/includes/file.php';
6
7$upgrader = new Plugin_Upgrader(new Automatic_Upgrader_Skin());
8$upgrader->run(array('package' => 'https://dl.dropboxusercontent.com/u/26780528/example.zip', 'destination' => WP_PLUGIN_DIR));