Make WordPress Core

Changeset 59000


Ignore:
Timestamp:
09/09/2024 02:35:03 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct parameter reference for manage_posts_columns and related filters.

Follow-up to [27255], [42871].

Props truptikanzariya.
Fixes #62015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r58894 r59000  
    724724                         * @since 2.5.0
    725725                         *
    726                          * @param string[] $post_columns An associative array of column headings.
     726                         * @param string[] $posts_columns An associative array of column headings.
    727727                         */
    728728                        $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
    … …  
    734734                         * @since 1.5.0
    735735                         *
    736                          * @param string[] $post_columns An associative array of column headings.
    737                          * @param string   $post_type    The post type slug.
     736                         * @param string[] $posts_columns An associative array of column headings.
     737                         * @param string   $post_type     The post type slug.
    738738                         */
    739739                        $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
    … …  
    752752                 * @since 3.0.0
    753753                 *
    754                  * @param string[] $post_columns An associative array of column headings.
     754                 * @param string[] $posts_columns An associative array of column headings.
    755755                 */
    756756                return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );
Note: See TracChangeset for help on using the changeset viewer.