WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/22/2018 08:26:06 PM (4 years ago)
Author:
johnbillion
Message:

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

See #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-icon.php

    r42343 r42871  
    3535     *
    3636     * @since 4.3.0
    37      * @var array
     37     * @var int[]
    3838     */
    3939    public $site_icon_sizes = array(
     
    132132
    133133    /**
    134      * Adds additional sizes to be made when creating the site_icon images.
    135      *
    136      * @since 4.3.0
    137      *
    138      * @param array $sizes List of additional sizes.
    139      * @return array Additional image sizes.
     134     * Adds additional sizes to be made when creating the site icon images.
     135     *
     136     * @since 4.3.0
     137     *
     138     * @param array[] $sizes Array of arrays containing information for additional sizes.
     139     * @return array[] Array of arrays containing additional image sizes.
    140140     */
    141141    public function additional_sizes( $sizes = array() ) {
     
    147147         * @since 4.3.0
    148148         *
    149          * @param array $site_icon_sizes Sizes available for the Site Icon.
     149         * @param int[] $site_icon_sizes Array of sizes available for the Site Icon.
    150150         */
    151151        $this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
     
    180180     * @since 4.3.0
    181181     *
    182      * @param array $sizes List of image sizes.
    183      * @return array List of intermediate image sizes.
     182     * @param string[] $sizes Array of image size names.
     183     * @return string[] Array of image size names.
    184184     */
    185185    public function intermediate_image_sizes( $sizes = array() ) {
Note: See TracChangeset for help on using the changeset viewer.