WordPress.org

Make WordPress Core

Ticket #38104: 38104.patch

File 38104.patch, 831 bytes (added by BjornW, 4 years ago)

Patch which properly closes the form tag

  • src/wp-admin/edit-tags.php

     
    392392
    393393<div class="form-wrap">
    394394<h2><?php echo $tax->labels->add_new_item; ?></h2>
    395 <form id="addtag" method="post" action="edit-tags.php" class="validate"
     395<form id="addtag" method="post" action="edit-tags.php" class="validate">
    396396<?php
    397397/**
    398398 * Fires at the beginning of the Add Tag form.
     
    402402 * @since 3.7.0
    403403 */
    404404do_action( "{$taxonomy}_term_new_form_tag" );
    405 ?>>
     405?>
    406406<input type="hidden" name="action" value="add-tag" />
    407407<input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" />
    408408<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />