Make WordPress Core

Changeset 20251


Ignore:
Timestamp:
03/22/2012 02:58:07 AM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: If a section has no settings, prevent it from being rendered. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20248 r20251  
    474474
    475475        foreach ( $this->sections as $section ) {
    476             if ( ! $section->check_capabilities() )
     476            if ( ! $section->check_capabilities() || ! $section->settings )
    477477                continue;
    478478
Note: See TracChangeset for help on using the changeset viewer.