WordPress.org

Make WordPress Core

Ticket #15386: screen.diff

File screen.diff, 739 bytes (added by manutdotcom, 8 years ago)

remove array() arg from apply_filters

  • wp-admin/includes/screen.php

    old new  
    1717function get_column_headers( $screen ) {
    1818        if ( is_string( $screen ) )
    1919                $screen = convert_to_screen( $screen );
    2020
    2121        static $column_headers = array();
    2222
    2323        if ( ! isset( $column_headers[ $screen->id ] ) )
    24                 $column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() );
    25        
     24                $column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns' );
     25
    2626        return $column_headers[ $screen->id ];
    2727}
    2828
    2929/**
    3030 * Get a list of hidden columns.
    3131 *
    3232 * @since 2.7.0