Make WordPress Core

Changeset 42039


Ignore:
Timestamp:
10/29/2017 03:21:27 AM (6 years ago)
Author:
westonruter
Message:

Customize: Fix phpdoc for params in WP_Customize_Manager::add_section().

Amends [40804].
See #39671.
Fixes #42372.

File:
1 edited

Legend:

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

    r42034 r42039  
    37663766     * @param WP_Customize_Section|string $id   Customize Section object, or Section ID.
    37673767     * @param array                     $args {
    3768      *  Optional. Array of properties for the new Panel object. Default empty array.
    3769      *  @type int          $priority              Priority of the panel, defining the display order of panels and sections.
     3768     *  Optional. Array of properties for the new Section object. Default empty array.
     3769     *  @type int          $priority              Priority of the section, defining the display order of panels and sections.
    37703770     *                                            Default 160.
    3771      *  @type string       $panel                 Priority of the panel, defining the display order of panels and sections.
    3772      *  @type string       $capability            Capability required for the panel. Default 'edit_theme_options'
    3773      *  @type string|array $theme_supports        Theme features required to support the panel.
    3774      *  @type string       $title                 Title of the panel to show in UI.
     3771     *  @type string       $panel                 The panel this section belongs to (if any). Default empty.
     3772     *  @type string       $capability            Capability required for the section. Default 'edit_theme_options'
     3773     *  @type string|array $theme_supports        Theme features required to support the section.
     3774     *  @type string       $title                 Title of the section to show in UI.
    37753775     *  @type string       $description           Description to show in the UI.
    3776      *  @type string       $type                  Type of the panel.
     3776     *  @type string       $type                  Type of the section.
    37773777     *  @type callable     $active_callback       Active callback.
    3778      *  @type bool         $description_hidden    Hide the description behind a help icon, instead of . Default false.
     3778     *  @type bool         $description_hidden    Hide the description behind a help icon, instead of inline above the first control. Default false.
    37793779     * }
    37803780     * @return WP_Customize_Section             The instance of the section that was added.
Note: See TracChangeset for help on using the changeset viewer.