Add WP_List_Table columns before all others. Fixes #15075
git-svn-id: https://develop.svn.wordpress.org/trunk@15764 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
70d68a8cb7
commit
eb59a85d22
|
@ -81,7 +81,7 @@ class WP_List_Table {
|
||||||
if ( is_string( $this->_screen ) )
|
if ( is_string( $this->_screen ) )
|
||||||
$this->_screen = convert_to_screen( $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'] )
|
if ( !$args['plural'] )
|
||||||
$args['plural'] = $this->_screen->base;
|
$args['plural'] = $this->_screen->base;
|
||||||
|
|
|
@ -234,7 +234,7 @@ function get_column_headers( $screen ) {
|
||||||
global $_wp_column_headers;
|
global $_wp_column_headers;
|
||||||
|
|
||||||
if ( !isset( $_wp_column_headers[ $screen->id ] ) ) {
|
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 ];
|
return $_wp_column_headers[ $screen->id ];
|
||||||
|
|
Loading…
Reference in New Issue