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:
scribu 2010-10-09 09:39:16 +00:00
parent 8731365a57
commit c3a31b6576
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 ];