mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Customize: Ensure id
for section and panel is passed among params
to respective templates.
Fixes issue where JS-added Publish Settings section failed to get container element ID set properly to hide its section-meta. Amends [42025]. See #42337, #42083. Built from https://develop.svn.wordpress.org/trunk@42035 git-svn-id: http://core.svn.wordpress.org/trunk@41869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
685e3c1a67
commit
84b969efea
@ -1302,7 +1302,10 @@
|
|||||||
template = wp.template( 'customize-' + container.containerType + '-default' );
|
template = wp.template( 'customize-' + container.containerType + '-default' );
|
||||||
}
|
}
|
||||||
if ( template && container.container ) {
|
if ( template && container.container ) {
|
||||||
return $.trim( template( container.params ) );
|
return $.trim( template( _.extend(
|
||||||
|
{ id: container.id },
|
||||||
|
container.params
|
||||||
|
) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<li></li>';
|
return '<li></li>';
|
||||||
@ -2968,7 +2971,10 @@
|
|||||||
template = wp.template( 'customize-panel-default-content' );
|
template = wp.template( 'customize-panel-default-content' );
|
||||||
}
|
}
|
||||||
if ( template && panel.headContainer ) {
|
if ( template && panel.headContainer ) {
|
||||||
panel.contentContainer.html( template( panel.params ) );
|
panel.contentContainer.html( template( _.extend(
|
||||||
|
{ id: panel.id },
|
||||||
|
panel.params
|
||||||
|
) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
8
wp-admin/js/customize-controls.min.js
vendored
8
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-beta4-42034';
|
$wp_version = '4.9-beta4-42035';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user