Changeset 3225 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-plugin-categories.php
- Timestamp:
- 05/24/2016 04:49:07 AM (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-plugin-categories.php
r3223 r3225 3 3 4 4 /** 5 * The Plugin Tags metabox5 * The Plugin Categories metabox 6 6 * 7 7 * @package WordPressdotorg\Plugin_Directory\Admin\Metabox 8 8 */ 9 class Plugin_ Tags {9 class Plugin_Categories { 10 10 /** 11 * Displays the Tags metabox for plugins.11 * Displays the categories metabox for plugins. 12 12 * The HTML here matches what Core uses. 13 13 * … … 16 16 static function display( $post ) { 17 17 ?> 18 <div id="taxonomy-plugin_ tag" class="categorydiv">19 <div id="plugin_ tag-all" class="tabs-panel">18 <div id="taxonomy-plugin_category" class="categorydiv"> 19 <div id="plugin_category-all" class="tabs-panel"> 20 20 <?php // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. ?> 21 <input type='hidden' name='tax_input[plugin_ tag][]' value='0' />22 <ul id="plugin_tagchecklist" data-wp-lists="list:plugin_ tag" class="categorychecklist form-no-clear">23 <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => 'plugin_ tag' ) ); ?>21 <input type='hidden' name='tax_input[plugin_category][]' value='0' /> 22 <ul id="plugin_tagchecklist" data-wp-lists="list:plugin_category" class="categorychecklist form-no-clear"> 23 <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => 'plugin_category' ) ); ?> 24 24 </ul> 25 25 </div>
Note: See TracChangeset
for help on using the changeset viewer.