Make WordPress Core

Changeset 59785


Ignore:
Timestamp:
02/08/2025 11:58:35 AM (9 months ago)
Author:
audrasjb
Message:

Docs: Various Docblock fixes in wp-includes/class-wp-customize-control.php, as per WP Docs standards;

See #62281.

File:
1 edited

Legend:

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

    r59784 r59785  
    248248
    249249    /**
    250      * Enqueue control related scripts/styles.
     250     * Enqueues control related scripts/styles.
    251251     *
    252252     * @since 3.4.0
     
    255255
    256256    /**
    257      * Check whether control is active to current Customizer preview.
     257     * Checks whether control is active to current Customizer preview.
    258258     *
    259259     * @since 4.0.0
     
    293293
    294294    /**
    295      * Fetch a setting's value.
     295     * Fetches a setting's value.
    296296     * Grabs the main setting by default.
    297297     *
     
    308308
    309309    /**
    310      * Refresh the parameters passed to the JavaScript via JSON.
     310     * Refreshes the parameters passed to the JavaScript via JSON.
    311311     *
    312312     * @since 3.4.0
     
    333333
    334334    /**
    335      * Get the data to export to the client via JSON.
     335     * Gets the data to export to the client via JSON.
    336336     *
    337337     * @since 4.1.0
     
    376376
    377377    /**
    378      * Get the control's content for insertion into the Customizer pane.
     378     * Gets the control's content for insertion into the Customizer pane.
    379379     *
    380380     * @since 4.1.0
     
    389389
    390390    /**
    391      * Check capabilities and render the control.
     391     * Checks capabilities and render the control.
    392392     *
    393393     * @since 3.4.0
     
    438438
    439439    /**
    440      * Get the data link attribute for a setting.
     440     * Gets the data link attribute for a setting.
    441441     *
    442442     * @since 3.4.0
     
    444444     *
    445445     * @param string $setting_key
    446      * @return string Data link parameter, a `data-customize-setting-link` attribute if the `$setting_key` refers to a pre-registered setting,
    447      *                and a `data-customize-setting-key-link` attribute if the setting is not yet registered.
     446     * @return string Data link parameter, a `data-customize-setting-link` attribute if the `$setting_key` refers
     447     *                to a pre-registered setting, and a `data-customize-setting-key-link` attribute if the setting
     448     *                is not yet registered.
    448449     */
    449450    public function get_link( $setting_key = 'default' ) {
     
    456457
    457458    /**
    458      * Render the data link attribute for the control's input element.
     459     * Renders the data link attribute for the control's input element.
    459460     *
    460461     * @since 3.4.0
    461462     * @uses WP_Customize_Control::get_link()
    462463     *
    463      * @param string $setting_key
     464     * @param string $setting_key Default 'default'.
    464465     */
    465466    public function link( $setting_key = 'default' ) {
     
    468469
    469470    /**
    470      * Render the custom attributes for the control's input element.
     471     * Renders the custom attributes for the control's input element.
    471472     *
    472473     * @since 4.0.0
     
    479480
    480481    /**
    481      * Render the control's content.
     482     * Renders the control's content.
    482483     *
    483484     * Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`.
     
    675676
    676677    /**
    677      * Render the control's JS template.
     678     * Renders the control's JS template.
    678679     *
    679680     * This function is only run for control types that have been registered with
Note: See TracChangeset for help on using the changeset viewer.