WordPress.org

Make WordPress Core

Changeset 13046


Ignore:
Timestamp:
02/10/10 17:43:29 (4 years ago)
Author:
ryan
Message:

Use show_ui instead of _show. see #9674

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r12991 r13046  
    10881088        $post[] = get_post($_POST['post_ID']); 
    10891089        page_rows($post); 
    1090     } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('_show' => true) ) ) ) { 
     1090    } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('show_ui' => true) ) ) ) { 
    10911091        $mode = $_POST['post_view']; 
    10921092        $post[] = get_post($_POST['post_ID']); 
  • trunk/wp-admin/edit-tags.php

    r13035 r13046  
    2222$title = $tax->label; 
    2323 
    24 if ( empty($post_type) || !in_array( $post_type, get_post_types( array('_show' => true) ) ) ) 
     24if ( empty($post_type) || !in_array( $post_type, get_post_types( array('show_ui' => true) ) ) ) 
    2525    $post_type = 'post'; 
    2626 
     
    329329</div> 
    330330 
    331 <?php  
    332 if ( ! is_taxonomy_hierarchical($taxonomy) )  
     331<?php 
     332if ( ! is_taxonomy_hierarchical($taxonomy) ) 
    333333    do_action('add_tag_form_fields', $taxonomy); 
    334334do_action($taxonomy . '_add_form_fields', $taxonomy); 
Note: See TracChangeset for help on using the changeset viewer.