Introduce `{$taxonomy}_term_edit_form_top` action to edit-tag-form.php.
This new action gives developers a place to output content at the beginning of the form element on edit-tags.php. Props flixos90. Fixes #35252. Built from https://develop.svn.wordpress.org/trunk@36526 git-svn-id: http://core.svn.wordpress.org/trunk@36493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48b8ea78da
commit
9a178f2510
|
@ -101,6 +101,18 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
|
|||
<?php
|
||||
wp_original_referer_field( true, 'previous' );
|
||||
wp_nonce_field( 'update-tag_' . $term_id );
|
||||
|
||||
/**
|
||||
* Fires at the beginning of the Edit Term form.
|
||||
*
|
||||
* At this point, the required hidden fields and nonces have already been output.
|
||||
*
|
||||
* @since 4.5.0
|
||||
*
|
||||
* @param object $tag Current taxonomy term object.
|
||||
* @param string $taxonomy Current $taxonomy slug.
|
||||
*/
|
||||
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
|
||||
?>
|
||||
<table class="form-table">
|
||||
<tr class="form-field form-required term-name-wrap">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36525';
|
||||
$wp_version = '4.5-alpha-36526';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue