WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/29/2011 08:05:12 PM (9 years ago)
Author:
ryan
Message:

Constructor cleanup. Props ocean90. fixes #16768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r17660 r17771  
    2626    var $result = array();
    2727
    28     function WP_Upgrader($skin = null) {
    29         return $this->__construct($skin);
    30     }
    3128    function __construct($skin = null) {
    3229        if ( null == $skin )
     
    926923    var $result = false;
    927924
    928     function WP_Upgrader_Skin($args = array()) {
    929         return $this->__construct($args);
    930     }
    931925    function __construct($args = array()) {
    932926        $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false );
     
    10151009    var $plugin_network_active = false;
    10161010
    1017     function Plugin_Upgrader_Skin($args = array()) {
    1018         return $this->__construct($args);
    1019     }
    1020 
    10211011    function __construct($args = array()) {
    10221012        $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') );
     
    10711061    var $error = false;
    10721062
    1073     function Bulk_Upgrader_Skin($args = array()) {
    1074         return $this->__construct($args);
    1075     }
    1076 
    10771063    function __construct($args = array()) {
    10781064        $defaults = array( 'url' => '', 'nonce' => '' );
     
    11791165class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
    11801166    var $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in.
    1181     function Plugin_Upgrader_Skin($args = array()) {
     1167
     1168    function __construct($args = array()) {
    11821169        parent::__construct($args);
    11831170    }
     
    12101197class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
    12111198    var $theme_info = array(); // Theme_Upgrader::bulk() will fill this in.
    1212     function Theme_Upgrader_Skin($args = array()) {
     1199
     1200    function __construct($args = array()) {
    12131201        parent::__construct($args);
    12141202    }
     
    12521240    var $type;
    12531241
    1254     function Plugin_Installer_Skin($args = array()) {
    1255         return $this->__construct($args);
    1256     }
    1257 
    12581242    function __construct($args = array()) {
    12591243        $defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' );
     
    13201304    var $type;
    13211305
    1322     function Theme_Installer_Skin($args = array()) {
    1323         return $this->__construct($args);
    1324     }
    1325 
    13261306    function __construct($args = array()) {
    13271307        $defaults = array( 'type' => 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '' );
     
    13851365class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
    13861366    var $theme = '';
    1387 
    1388     function Theme_Upgrader_Skin($args = array()) {
    1389         return $this->__construct($args);
    1390     }
    13911367
    13921368    function __construct($args = array()) {
     
    14411417    var $filename;
    14421418
    1443     function File_Upload_Upgrader($form, $urlholder) {
    1444         return $this->__construct($form, $urlholder);
    1445     }
    14461419    function __construct($form, $urlholder) {
    14471420        if ( ! ( ( $uploads = wp_upload_dir() ) && false === $uploads['error'] ) )
Note: See TracChangeset for help on using the changeset viewer.