Make WordPress Core

Changeset 49679 for trunk


Ignore:
Timestamp:
11/22/2020 03:49:48 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add documentation for the $type, $mime_type, and $button_labels properties in WP_Customize_Upload_Control.

Follow-up to [20319], [30309], [31698], [32023].

Props subrataemfluence.
See #44411.

File:
1 edited

Legend:

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

    r47122 r49679  
    1616 */
    1717class WP_Customize_Upload_Control extends WP_Customize_Media_Control {
    18         public $type          = 'upload';
    19         public $mime_type     = '';
     18        /**
     19         * Control type.
     20         *
     21         * @since 3.4.0
     22         * @var string
     23         */
     24        public $type = 'upload';
     25
     26        /**
     27         * Media control mime type.
     28         *
     29         * @since 4.1.0
     30         * @var string
     31         */
     32        public $mime_type = '';
     33
     34        /**
     35         * Button labels.
     36         *
     37         * @since 4.1.0
     38         * @var array
     39         */
    2040        public $button_labels = array();
    21         public $removed       = '';   // Unused.
     41
     42        public $removed = '';         // Unused.
    2243        public $context;              // Unused.
    2344        public $extensions = array(); // Unused.
Note: See TracChangeset for help on using the changeset viewer.