Make WordPress Core

Ticket #48303: 48348.1.patch

File 48348.1.patch, 6.1 KB (added by Marcio Zebedeu, 6 years ago)

adding documentation > Ticket #48348

  • wp-includes/customize/class-wp-customize-color-control.php

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

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