Make WordPress Core

Ticket #33945: patch.diff

File patch.diff, 1.1 KB (added by miyauchi, 11 years ago)
  • wp-admin/includes/meta-boxes.php

     
    475475
    476476                <div id="<?php echo $tax_name; ?>-all" class="tabs-panel">
    477477                        <?php
    478             $name = ( $tax_name == 'category' ) ? 'post_category' : 'tax_input[' . $tax_name . ']';
    479             echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
    480             ?>
     478                        $name = ( $tax_name == 'category' ) ? 'post_category' : 'tax_input[' . $tax_name . ']';
     479                        echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
     480                        ?>
    481481                        <ul id="<?php echo $tax_name; ?>checklist" data-wp-lists="list:<?php echo $tax_name; ?>" class="categorychecklist form-no-clear">
    482482                                <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => $tax_name, 'popular_cats' => $popular_ids ) ); ?>
    483483                        </ul>