Make WordPress Core


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

    r42725 r42871  
    234234     * @since 4.4.0
    235235     *
    236      * @param array  $args URL parameters for the link.
    237      * @param string $label Link text.
    238      * @param string $class Optional. Class attribute. Default empty string.
     236     * @param string[] $args  Associative array of URL parameters for the link.
     237     * @param string   $label Link text.
     238     * @param string   $class Optional. Class attribute. Default empty string.
    239239     * @return string The formatted link string.
    240240     */
     
    558558         * @since 3.5.0
    559559         *
    560          * @param array  $taxonomies Array of taxonomies to show columns for.
    561          * @param string $post_type  The post type.
     560         * @param string[] $taxonomies Array of taxonomy names to show columns for.
     561         * @param string   $post_type  The post type.
    562562         */
    563563        $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );
     
    590590             * @since 2.5.0
    591591             *
    592              * @param array $post_columns An array of column names.
     592             * @param string[] $post_columns An associative array of column headings.
    593593             */
    594594            $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
     
    600600             * @since 1.5.0
    601601             *
    602              * @param array  $posts_columns An array of column names.
    603              * @param string $post_type     The post type slug.
     602             * @param string[] $post_columns An associative array of column headings.
     603             * @param string   $post_type    The post type slug.
    604604             */
    605605            $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
     
    613613         * @since 3.0.0
    614614         *
    615          * @param array $post_columns An array of column names.
     615         * @param string[] $post_columns An associative array of column headings.
    616616         */
    617617        return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );
     
    13361336             * @since 2.8.0
    13371337             *
    1338              * @param array $actions An array of row action links. Defaults are
    1339              *                         'Edit', 'Quick Edit', 'Restore', 'Trash',
    1340              *                         'Delete Permanently', 'Preview', and 'View'.
    1341              * @param WP_Post $post The post object.
     1338             * @param string[] $actions An array of row action links. Defaults are
     1339             *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
     1340             *                          'Delete Permanently', 'Preview', and 'View'.
     1341             * @param WP_Post  $post    The post object.
    13421342             */
    13431343            $actions = apply_filters( 'page_row_actions', $actions, $post );
     
    13511351             * @since 2.8.0
    13521352             *
    1353              * @param array $actions An array of row action links. Defaults are
    1354              *                         'Edit', 'Quick Edit', 'Restore', 'Trash',
    1355              *                         'Delete Permanently', 'Preview', and 'View'.
    1356              * @param WP_Post $post The post object.
     1353             * @param string[] $actions An array of row action links. Defaults are
     1354             *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
     1355             *                          'Delete Permanently', 'Preview', and 'View'.
     1356             * @param WP_Post  $post    The post object.
    13571357             */
    13581358            $actions = apply_filters( 'post_row_actions', $actions, $post );
Note: See TracChangeset for help on using the changeset viewer.