Make WordPress Core

Changeset 22519


Ignore:
Timestamp:
11/10/2012 04:59:46 AM (11 years ago)
Author:
nacin
Message:

Customizer uploader control: Pass arrays of extensions around instead. see #22149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-control.php

    r22492 r22519  
    403403    public $removed = '';
    404404    public $context;
    405     public $extensions;
     405    public $extensions = array();
    406406
    407407    /**
     
    429429
    430430        if ( $this->extensions )
    431             $this->json['extensions'] = $this->extensions;
     431            $this->json['extensions'] = implode( ',', $this->extensions );
    432432    }
    433433
     
    461461    public $get_url;
    462462    public $statuses;
    463     public $extensions = 'jpg,jpeg,gif,png';
     463    public $extensions = array( 'jpg', 'jpeg', 'gif', 'png' );
    464464
    465465    protected $tabs = array();
Note: See TracChangeset for help on using the changeset viewer.