Make WordPress Core


Ignore:
Timestamp:
11/09/2012 05:47:02 AM (13 years ago)
Author:
koopersmith
Message:

Customizer: Restrict image control uploaders to only allow image file types. see #22149.

File:
1 edited

Legend:

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

    r22400 r22492  
    403403    public $removed = '';
    404404    public $context;
     405    public $extensions;
    405406
    406407    /**
     
    426427        if ( $this->context )
    427428            $this->json['context'] = $this->context;
     429
     430        if ( $this->extensions )
     431            $this->json['extensions'] = $this->extensions;
    428432    }
    429433
     
    457461    public $get_url;
    458462    public $statuses;
     463    public $extensions = 'jpg,jpeg,gif,png';
    459464
    460465    protected $tabs = array();
Note: See TracChangeset for help on using the changeset viewer.