Add WP_List_Table columns before all others. Fixes #15075
git-svn-id: http://svn.automattic.com/wordpress/trunk@15764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8731365a57
commit
c3a31b6576
|
@ -81,7 +81,7 @@ class WP_List_Table {
|
|||
if ( is_string( $this->_screen ) )
|
||||
$this->_screen = convert_to_screen( $this->_screen );
|
||||
|
||||
add_filter( 'manage_' . $this->_screen->id . '_columns', array( $this, 'get_columns' ) );
|
||||
add_filter( 'manage_' . $this->_screen->id . '_columns', array( $this, 'get_columns' ), 0 );
|
||||
|
||||
if ( !$args['plural'] )
|
||||
$args['plural'] = $this->_screen->base;
|
||||
|
|
|
@ -234,7 +234,7 @@ function get_column_headers( $screen ) {
|
|||
global $_wp_column_headers;
|
||||
|
||||
if ( !isset( $_wp_column_headers[ $screen->id ] ) ) {
|
||||
$_wp_column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', $_wp_column_headers );
|
||||
$_wp_column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() );
|
||||
}
|
||||
|
||||
return $_wp_column_headers[ $screen->id ];
|
||||
|
|
Loading…
Reference in New Issue