Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: eeb1683ec3
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.701 kb
<?php
include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
class Automattic_Developer_Empty_Upgrader_Skin extends WP_Upgrader_Skin {
function __construct($args = array()) {
$defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' );
$args = wp_parse_args( $args, $defaults );
$this->type = $args['type'];
$this->api = isset( $args['api'] ) ? $args['api'] : array();
parent::__construct( $args );
}
public function request_filesystem_credentials() {
return true;
}
public function error() {
die( '-1' );
}
public function header() {}
public function footer() {}
public function feedback() {}
}
Jump to Line
Something went wrong with that request. Please try again.