WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/22/2012 07:17:26 AM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Add a WP_Customize_Setting->visibility parameter to show/hide a control based upon the value of another control. Also shifts rendering the setting wrapper element into WP_Customize_Setting->render() and adds WP_Customize_Setting->render_content(). see #19910.

File:
1 edited

Legend:

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

    r20248 r20260  
    8484            <h3 class="customize-section-title" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
    8585            <ul class="customize-section-content">
    86                 <?php foreach ( $this->settings as $setting ) : ?>
    87                 <li id="customize-control-<?php echo esc_attr( $setting->id ); ?>" class="customize-control customize-control-<?php echo esc_attr( $setting->control ); ?>">
    88                     <?php $setting->maybe_render(); ?>
    89                 </li>
    90                 <?php endforeach; ?>
     86                <?php
     87                foreach ( $this->settings as $setting )
     88                    $setting->maybe_render();
     89                ?>
    9190            </ul>
    9291        </li>
Note: See TracChangeset for help on using the changeset viewer.