WordPress.org

Make WordPress Core

Ticket #14212: 14212.diff

File 14212.diff, 665 bytes (added by ryan, 10 years ago)
  • wp-admin/includes/template.php

     
    29472947        $hidden = get_user_option( "metaboxhidden_{$screen->id}" );
    29482948
    29492949        // Hide slug boxes by default
    2950         if ( !is_array( $hidden ) )
    2951                 $hidden = array('slugdiv');
     2950        if ( !is_array( $hidden ) ) {
     2951                if ( 'post' == $screen->base )
     2952                        $hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt');
     2953                else
     2954                        $hidden = array();
     2955                $hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen);
     2956        }
    29522957
    29532958        return $hidden;
    29542959}