Make WordPress Core


Ignore:
Timestamp:
11/06/2012 01:01:52 AM (12 years ago)
Author:
azaozz
Message:

Kill use of colons in class names, props SergeyBiryukov, fixes #21152

File:
1 edited

Legend:

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

    r22364 r22396  
    424424            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.
    425425            ?>
    426             <ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy?> categorychecklist form-no-clear">
     426            <ul id="<?php echo $taxonomy; ?>checklist" data-wp-lists="list:<?php echo $taxonomy?>" class="categorychecklist form-no-clear">
    427427                <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>
    428428            </ul>
     
    445445                    </label>
    446446                    <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;' ) ); ?>
    447                     <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
     447                    <input type="button" id="<?php echo $taxonomy; ?>-add-submit" data-wp-lists="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
    448448                    <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
    449449                    <span id="<?php echo $taxonomy; ?>-ajax-response"></span>
     
    756756
    757757    <div id="categories-all" class="tabs-panel">
    758         <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
     758        <ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear">
    759759            <?php
    760760            if ( isset($link->link_id) )
     
    777777            <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
    778778            <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
    779             <input type="button" id="link-category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" />
     779            <input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
    780780            <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
    781781            <span id="category-ajax-response"></span>
Note: See TracChangeset for help on using the changeset viewer.