rebase on oct-10-2023
This commit is contained in:
@@ -607,8 +607,11 @@ class WP_Customize_Control {
|
||||
// Hackily add in the data link parameter.
|
||||
$dropdown = str_replace( '<select', '<select ' . $this->get_link() . ' id="' . esc_attr( $input_id ) . '" ' . $describedby_attr, $dropdown );
|
||||
|
||||
// Even more hacikly add auto-draft page stubs.
|
||||
// @todo Eventually this should be removed in favor of the pages being injected into the underlying get_pages() call. See <https://github.com/xwp/wp-customize-posts/pull/250>.
|
||||
/*
|
||||
* Even more hacikly add auto-draft page stubs.
|
||||
* @todo Eventually this should be removed in favor of the pages being injected into the underlying get_pages() call.
|
||||
* See <https://github.com/xwp/wp-customize-posts/pull/250>.
|
||||
*/
|
||||
$nav_menus_created_posts_setting = $this->manager->get_setting( 'nav_menus_created_posts' );
|
||||
if ( $nav_menus_created_posts_setting && current_user_can( 'publish_pages' ) ) {
|
||||
$auto_draft_page_options = '';
|
||||
|
||||
Reference in New Issue
Block a user