diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/class-wp-customize-control.php --- a/wp/wp-includes/class-wp-customize-control.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/class-wp-customize-control.php Fri Sep 05 18:40:08 2025 +0200 @@ -12,6 +12,7 @@ * * @since 3.4.0 */ +#[AllowDynamicProperties] class WP_Customize_Control { /** @@ -167,7 +168,7 @@ * * Supplied `$args` override class property defaults. * - * If `$args['settings']` is not defined, use the $id as the setting ID. + * If `$args['settings']` is not defined, use the `$id` as the setting ID. * * @since 3.4.0 * @@ -552,7 +553,7 @@ @@ -606,8 +607,11 @@ // Hackily add in the data link parameter. $dropdown = str_replace( '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 . + /* + * 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 . + */ $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 = ''; @@ -631,10 +635,12 @@ printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item ); ?> -
- - - +
+ +
+ + +