Try and tidy up the show_screen logic a little.

Implement a better override of the column header.
See #13393.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-14 16:45:14 +00:00
parent e5fa82c152
commit 867628913e
1 changed files with 1 additions and 2 deletions

View File

@ -317,8 +317,6 @@ function wp_nav_menu_setup() {
// Register advanced menu items (columns)
add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns');
add_filter( 'columns_prefs_header', create_function( '', "return __('Show advanced menu properties');" ));
// If first time editing, disable advanced items by default.
if( false === get_user_option( 'managenav-menuscolumnshidden' ) ) {
$user = wp_get_current_user();
@ -998,6 +996,7 @@ function wp_get_nav_menu_to_edit( $menu_item_id = 0 ) {
*/
function wp_nav_menu_manage_columns() {
return array(
'title' => __('Show advanced menu properties'),
'cb' => '<input type="checkbox" />',
'link-target' => __('Link Target'),
'css-classes' => __('CSS Classes'),