Make WordPress Core

Ticket #48344: 48344.diff

File 48344.diff, 1.3 KB (added by iaaxpage, 6 years ago)

Arguments for the constructor

  • src/wp-includes/class-wp-customize-panel.php

     
    139139         *
    140140         * @param WP_Customize_Manager $manager Customizer bootstrap instance.
    141141         * @param string               $id      An specific ID for the panel.
    142          * @param array                $args    Panel arguments.
     142         * @param array                $args {
     143         *  Optional. Array of properties for the new WP_Customize_Panel. Default empty array.
     144         *
     145         *  @type int          $priority              Priority of the panel, defining the display order of panels and sections. Default 160
     146         *  @type string       $capability            Capability required for the panel. Default 'edit_theme_options'.
     147         *  @type string|array $theme_supports        Theme features required to support the panel.
     148         *  @type string       $title                 Title of the panel to show in UI.
     149         *  @type string       $description           Description to show in the UI.
     150         *  @type string       $type                  Type of the panel.
     151         *  @type callable     $active_callback       Active callback.
     152         * }
    143153         */
    144154        public function __construct( $manager, $id, $args = array() ) {
    145155                $keys = array_keys( get_object_vars( $this ) );