Ticket #48303: 48348.patch
File 48348.patch, 5.9 KB (added by , 5 years ago) |
---|
-
wp-includes/customize/class-wp-customize-color-control.php
46 46 * @param WP_Customize_Manager $manager Customizer bootstrap instance. 47 47 * @param string $id Control ID. 48 48 * @param array $args Optional. Arguments to override class property defaults. 49 * 50 * @type int $instance_number Order in which this instance was created in relation 51 * to other instances. 52 * @type WP_Customize_Manager $manager Customizer bootstrap instance. 53 * @type string $id Control ID. 54 * @type array $settings All settings tied to the control. If undefined, `$id` will 55 * be used. 56 * @type string $setting The primary setting for the control (if there is one). 57 * Default 'default'. 58 * @type int $priority Order priority to load the control. Default 10. 59 * @type string $section Section the control belongs to. Default empty. 60 * @type string $label Label for the control. Default empty. 61 * @type string $description Description for the control. Default empty. 62 * @type array $choices List of choices for 'radio' or 'select' type controls, where 63 * values are the keys, and labels are the values. 64 * Default empty array. 65 * @type array $input_attrs List of custom input attributes for control output, where 66 * attribute names are the keys and values are the values. Not 67 * used for 'checkbox', 'radio', 'select', 'textarea', or 68 * 'dropdown-pages' control types. Default empty array. 69 * @type array $json Deprecated. Use WP_Customize_Control::json() instead. 70 * @type string $type Control type. Core controls include 'text', 'checkbox', 71 * 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional 72 * input types such as 'email', 'url', 'number', 'hidden', and 73 * 'date' are supported implicitly. Default 'text'. 74 * } 49 75 */ 50 76 public function __construct( $manager, $id, $args = array() ) { 51 77 $this->statuses = array( '' => __( 'Default' ) ); -
wp-includes/customize/class-wp-customize-media-control.php
48 48 * @param WP_Customize_Manager $manager Customizer bootstrap instance. 49 49 * @param string $id Control ID. 50 50 * @param array $args Optional. Arguments to override class property defaults. 51 * 52 * @type int $instance_number Order in which this instance was created in relation 53 * to other instances. 54 * @type WP_Customize_Manager $manager Customizer bootstrap instance. 55 * @type string $id Control ID. 56 * @type array $settings All settings tied to the control. If undefined, `$id` will 57 * be used. 58 * @type string $setting The primary setting for the control (if there is one). 59 * Default 'default'. 60 * @type int $priority Order priority to load the control. Default 10. 61 * @type string $section Section the control belongs to. Default empty. 62 * @type string $label Label for the control. Default empty. 63 * @type string $description Description for the control. Default empty. 64 * @type array $choices List of choices for 'radio' or 'select' type controls, where 65 * values are the keys, and labels are the values. 66 * Default empty array. 67 * @type array $input_attrs List of custom input attributes for control output, where 68 * attribute names are the keys and values are the values. Not 69 * used for 'checkbox', 'radio', 'select', 'textarea', or 70 * 'dropdown-pages' control types. Default empty array. 71 * @type array $json Deprecated. Use WP_Customize_Control::json() instead. 72 * @type string $type Control type. Core controls include 'text', 'checkbox', 73 * 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional 74 * input types such as 'email', 'url', 'number', 'hidden', and 75 * 'date' are supported implicitly. Default 'text'. 76 * } 51 77 */ 52 78 public function __construct( $manager, $id, $args = array() ) { 53 79 parent::__construct( $manager, $id, $args );