mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Menus: Introduce wp_nav_menu_item_custom_fields_customize_template
action that fires at the end of the form field template for nav menu items in the customizer.
This brings parity with the `wp_nav_menu_item_custom_fields` action added in [47190] for the Menus screen. Props celloexpressions. Fixes #47056. Built from https://develop.svn.wordpress.org/trunk@47350 git-svn-id: http://core.svn.wordpress.org/trunk@47137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
735d31ffbb
commit
4aeebf03a5
@ -132,6 +132,17 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of the form field template for nav menu items in the customizer.
|
||||
*
|
||||
* Additional fields can be rendered here and managed in JavaScript.
|
||||
*
|
||||
* @since 5.4.0
|
||||
*/
|
||||
do_action( 'wp_nav_menu_item_custom_fields_customize_template' );
|
||||
?>
|
||||
|
||||
<div class="menu-item-actions description-thin submitbox">
|
||||
<# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
|
||||
<p class="link-to-original">
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-beta2-47349';
|
||||
$wp_version = '5.4-beta2-47350';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user