Changeset 2994 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-plugin-tags.php
- Timestamp:
- 04/21/2016 07:41:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-plugin-tags.php
r2655 r2994 8 8 */ 9 9 class Plugin_Tags { 10 11 10 /** 12 11 * Displays the Publish metabox for plugins. 13 12 * The HTML here matches what Core uses. 13 * 14 * @param \WP_Post $post 14 15 */ 15 static function display( $post, $box ) { 16 $taxonomy = get_taxonomy( 'plugin_tag' ); 16 static function display( $post ) { 17 17 ?> 18 18 <div id="taxonomy-plugin_tag" class="categorydiv"> 19 19 <div id="plugin_tag-all" class="tabs-panel"> 20 <?php 21 echo "<input type='hidden' name='tax_input[plugin_tag][]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks. 22 ?> 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' /> 23 22 <ul id="plugin_tagchecklist" data-wp-lists="list:plugin_tag" class="categorychecklist form-no-clear"> 24 23 <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => 'plugin_tag' ) ); ?>
Note: See TracChangeset
for help on using the changeset viewer.