WordPress.org

Make WordPress Core

Ticket #42916: patch.diff

File patch.diff, 944 bytes (added by jazbek, 4 years ago)
  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index 9078a22..605083f 100644
    a b function get_inline_data( $post ) { 
    329329        foreach ( $taxonomy_names as $taxonomy_name ) {
    330330                $taxonomy = get_taxonomy( $taxonomy_name );
    331331
    332                 if ( $taxonomy->hierarchical && $taxonomy->show_ui ) {
     332                if ( $taxonomy->hierarchical && $taxonomy->show_in_quick_edit ) {
    333333
    334334                        $terms = get_object_term_cache( $post->ID, $taxonomy_name );
    335335                        if ( false === $terms ) {
    function get_inline_data( $post ) { 
    340340
    341341                        echo '<div class="post_category" id="' . $taxonomy_name . '_' . $post->ID . '">' . implode( ',', $term_ids ) . '</div>';
    342342
    343                 } elseif ( $taxonomy->show_ui ) {
     343                } elseif ( $taxonomy->show_in_quick_edit ) {
    344344
    345345                        $terms_to_edit = get_terms_to_edit( $post->ID, $taxonomy_name );
    346346                        if ( ! is_string( $terms_to_edit ) ) {