Make WordPress Core


Ignore:
Timestamp:
03/22/2018 08:26:06 PM (9 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-ms-sites-list-table.php

    r42343 r42871  
    249249                 * @since MU (3.0.0)
    250250                 *
    251                  * @param array $sites_columns An array of displayed site columns. Default 'cb',
    252                  *                             'blogname', 'lastupdated', 'registered', 'users'.
     251                 * @param string[] $sites_columns An array of displayed site columns. Default 'cb',
     252                 *                               'blogname', 'lastupdated', 'registered', 'users'.
    253253                 */
    254254                return apply_filters( 'wpmu_blogs_columns', $sites_columns );
    … …  
    274274         */
    275275        public function column_cb( $blog ) {
     276                var_dump($blog);
     277                exit;
    276278                if ( ! is_main_site( $blog['blog_id'] ) ) :
    277279                        $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
    … …  
    570572                 * @since 3.1.0
    571573                 *
    572                  * @param array $actions  An array of action links to be displayed.
    573                  * @param int    $blog_id  The site ID.
    574                  * @param string $blogname Site path, formatted depending on whether it is a sub-domain
    575                  *                         or subdirectory multisite installation.
     574                 * @param string[] $actions  An array of action links to be displayed.
     575                 * @param int      $blog_id  The site ID.
     576                 * @param string   $blogname Site path, formatted depending on whether it is a sub-domain
     577                 *                           or subdirectory multisite installation.
    576578                 */
    577579                $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
Note: See TracChangeset for help on using the changeset viewer.