WordPress.org

Make WordPress Core

Changeset 12887


Ignore:
Timestamp:
01/28/10 17:21:26 (4 years ago)
Author:
ryan
Message:

Don't hardcode post type. Props typeomedia. fixes #12067

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r12833 r12887  
    104104        add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core'); 
    105105    else 
    106         add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', 'post', 'side', 'core', array( 'taxonomy' => $tax_name )); 
     106        add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', $post_type, 'side', 'core', array( 'taxonomy' => $tax_name )); 
    107107} 
    108108 
Note: See TracChangeset for help on using the changeset viewer.