Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:07:10 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Switch more docs over to typed array notation, plus some fixes.

See #48303, #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r45740 r46596  
    1515 *
    1616 * @param string|WP_Screen $screen The screen you want the headers for
    17  * @return array Containing the headers in the format id => UI String
     17 * @return string[] The column header labels keyed by column ID.
    1818 */
    1919function get_column_headers( $screen ) {
     
    2525
    2626    if ( ! isset( $column_headers[ $screen->id ] ) ) {
    27 
    2827        /**
    2928         * Filters the column headers for a list table on a specific screen.
     
    3635         * @since 3.0.0
    3736         *
    38          * @param array $columns An array of column headers. Default empty.
     37         * @param string[] $columns The column header labels keyed by column ID.
    3938         */
    4039        $column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() );
Note: See TracChangeset for help on using the changeset viewer.