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-media-list-table.php

    r42343 r42871  
    287287         * @since 3.5.0
    288288         *
    289          * @param array  $taxonomies An array of registered taxonomies to show for attachments.
    290          * @param string $post_type  The post type. Default 'attachment'.
     289         * @param string[] $taxonomies An array of registered taxonomy names to show for attachments.
     290         * @param string   $post_type  The post type. Default 'attachment'.
    291291         */
    292292        $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );
     
    318318         * @since 2.5.0
    319319         *
    320          * @param array $posts_columns An array of columns displayed in the Media list table.
    321          * @param bool  $detached      Whether the list table contains media not attached
    322          *                             to any posts. Default true.
     320         * @param string[] $posts_columns An array of columns displayed in the Media list table.
     321         * @param bool     $detached      Whether the list table contains media not attached
     322         *                                to any posts. Default true.
    323323         */
    324324        return apply_filters( 'manage_media_columns', $posts_columns, $this->detached );
     
    756756         * @since 2.8.0
    757757         *
    758          * @param array  $actions  An array of action links for each attachment.
    759          *                          Default 'Edit', 'Delete Permanently', 'View'.
    760          * @param WP_Post $post     WP_Post object for the current attachment.
    761          * @param bool    $detached Whether the list table contains media not attached
    762          *                          to any posts. Default true.
     758         * @param string[] $actions  An array of action links for each attachment.
     759         *                           Default 'Edit', 'Delete Permanently', 'View'.
     760         * @param WP_Post  $post     WP_Post object for the current attachment.
     761         * @param bool     $detached Whether the list table contains media not attached
     762         *                           to any posts. Default true.
    763763         */
    764764        return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
Note: See TracChangeset for help on using the changeset viewer.