Make WordPress Core

Changeset 34364


Ignore:
Timestamp:
09/21/2015 03:17:29 PM (10 years ago)
Author:
wonderboymusic
Message:

Meta Boxes: In post_categories_meta_box(), convert some spaces to tabs.

Props miyauchi.
Fixes #33945.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r34350 r34364  
    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 ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.