Make WordPress Core

Ticket #44633: 44633.2.patch

File 44633.2.patch, 905 bytes (added by dlh, 6 years ago)
  • src/wp-includes/class-wp-customize-nav-menus.php

    diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
    index d2a346d5b0..908fc0859b 100644
    final class WP_Customize_Nav_Menus { 
    592592                } else {
    593593                        $description .= '<p>' . __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>';
    594594                }
     595
     596                /*
     597                 * Once multiple theme supports are allowed in WP_Customize_Panel, this
     598                 * panel can be restricted to themes that support menus or widgets.
     599                 */
    595600                $this->manager->add_panel(
    596601                        new WP_Customize_Nav_Menus_Panel(
    597602                                $this->manager, 'nav_menus', array(
    598603                                        'title'       => __( 'Menus' ),
    599604                                        'description' => $description,
    600605                                        'priority'    => 100,
    601                                 // 'theme_supports' => 'menus|widgets', @todo allow multiple theme supports
    602606                                )
    603607                        )
    604608                );