From c3a31b65765521845ad32e63b33a690ef7fc1add Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 9 Oct 2010 09:39:16 +0000 Subject: [PATCH] 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 --- wp-admin/includes/list-table.php | 2 +- wp-admin/includes/template.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php index 3fb4aea102..bd0f2c8982 100644 --- a/wp-admin/includes/list-table.php +++ b/wp-admin/includes/list-table.php @@ -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; diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index cd56356313..7a55aa95e4 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 ];