WordPress.org

Make WordPress Core

Changeset 47363


Ignore:
Timestamp:
02/25/2020 04:19:08 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add a reference to WP_Customize_Control::__construct() for information on accepted arguments to override class property defaults in child classes.

Props marcio-zebedeu, marekdedic.
Fixes #48348.

Location:
trunk/src/wp-includes/customize
Files:
5 edited

Legend:

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

    r42975 r47363  
    4747     * @param string               $id      Control ID.
    4848     * @param array                $args    Optional. Arguments to override class property defaults.
     49     *                                      See WP_Customize_Control::__construct() for information
     50     *                                      on accepted arguments.
    4951     */
    5052    public function __construct( $manager, $id, $args = array() ) {
  • trunk/src/wp-includes/customize/class-wp-customize-media-control.php

    r46660 r47363  
    4949     * @param string               $id      Control ID.
    5050     * @param array                $args    Optional. Arguments to override class property defaults.
     51     *                                      See WP_Customize_Control::__construct() for information
     52     *                                      on accepted arguments.
    5153     */
    5254    public function __construct( $manager, $id, $args = array() ) {
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php

    r47350 r47363  
    4242     * @param WP_Customize_Manager $manager Customizer bootstrap instance.
    4343     * @param string               $id      The control ID.
    44      * @param array                $args    Optional. Overrides class property defaults.
     44     * @param array                $args    Optional. Arguments to override class property defaults.
     45     *                                      See WP_Customize_Control::__construct() for information
     46     *                                      on accepted arguments.
    4547     */
    4648    public function __construct( $manager, $id, $args = array() ) {
  • trunk/src/wp-includes/customize/class-wp-customize-new-menu-control.php

    r46637 r47363  
    3535     * @deprecated 4.9.0
    3636     *
    37      * @param WP_Customize_Manager $manager Manager.
    38      * @param string               $id      ID.
    39      * @param array                $args    Args.
     37     * @param WP_Customize_Manager $manager Customizer bootstrap instance.
     38     * @param string               $id      The control ID.
     39     * @param array                $args    Optional. Arguments to override class property defaults.
     40     *                                      See WP_Customize_Control::__construct() for information
     41     *                                      on accepted arguments.
    4042     */
    4143    public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
  • trunk/src/wp-includes/customize/class-wp-customize-site-icon-control.php

    r46389 r47363  
    3535     * @param string               $id      Control ID.
    3636     * @param array                $args    Optional. Arguments to override class property defaults.
     37     *                                      See WP_Customize_Control::__construct() for information
     38     *                                      on accepted arguments.
    3739     */
    3840    public function __construct( $manager, $id, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.