Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42797 r42875  
    347347         * @see WP_Customize_Manager::__construct()
    348348         *
    349          * @param array                $components List of core components to load.
     349         * @param string[]             $components Array of core components to load.
    350350         * @param WP_Customize_Manager $this       WP_Customize_Manager instance.
    351351         */
     
    30953095     * @see _wp_translate_postdata()
    30963096     *
    3097      * @param array  $caps    Returns the user's actual capabilities.
    3098      * @param string $cap     Capability name.
    3099      * @param int    $user_id The user ID.
    3100      * @param array  $args    Adds the context to the cap. Typically the object ID.
    3101      * @return array Capabilities.
     3097     * @param string[] $caps    Array of the user's capabilities.
     3098     * @param string   $cap     Capability name.
     3099     * @param int      $user_id The user ID.
     3100     * @param array    $args    Adds the context to the cap. Typically the object ID.
     3101     * @return array   Capabilities.
    31023102     */
    31033103    public function grant_edit_post_capability_for_changeset( $caps, $cap, $user_id, $args ) {
     
    45074507         * @since 3.4.0
    45084508         *
    4509          * @param array $allowed_urls An array of allowed URLs.
     4509         * @param string[] $allowed_urls An array of allowed URLs.
    45104510         */
    45114511        $allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );
     
    46204620         * @since 4.2.0
    46214621         *
    4622          * @param array                $nonces Array of refreshed nonces for save and
     4622         * @param string[]             $nonces Array of refreshed nonces for save and
    46234623         *                                     preview actions.
    46244624         * @param WP_Customize_Manager $this   WP_Customize_Manager instance.
Note: See TracChangeset for help on using the changeset viewer.