Make WordPress Core

Changeset 15555


Ignore:
Timestamp:
08/31/2010 06:27:59 PM (14 years ago)
Author:
ryan
Message:

Hide more meta boxes by default. fixes #14212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15528 r15555  
    10131013
    10141014    // Hide slug boxes by default
    1015     if ( !is_array( $hidden ) )
    1016         $hidden = array('slugdiv');
     1015    if ( !is_array( $hidden ) ) {
     1016        if ( 'post' == $screen->base )
     1017            $hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt');
     1018        else
     1019            $hidden = array();
     1020        $hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen);
     1021    }
    10171022
    10181023    return $hidden;
Note: See TracChangeset for help on using the changeset viewer.