~canonical-sysadmins/wordpress/4.8.2

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-customize-section.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
         * @see WP_Customize_Section::active()
140
140
         *
141
141
         * @var callable Callback is called with one argument, the instance of
142
 
         *               {@see WP_Customize_Section}, and returns bool to indicate
143
 
         *               whether the section is active (such as it relates to the URL
144
 
         *               currently being previewed).
 
142
         *               WP_Customize_Section, and returns bool to indicate whether
 
143
         *               the section is active (such as it relates to the URL currently
 
144
         *               being previewed).
145
145
         */
146
146
        public $active_callback = '';
147
147
 
188
188
                $active = call_user_func( $this->active_callback, $this );
189
189
 
190
190
                /**
191
 
                 * Filter response of {@see WP_Customize_Section::active()}.
 
191
                 * Filters response of WP_Customize_Section::active().
192
192
                 *
193
193
                 * @since 4.1.0
194
194
                 *
195
195
                 * @param bool                 $active  Whether the Customizer section is active.
196
 
                 * @param WP_Customize_Section $section {@see WP_Customize_Section} instance.
 
196
                 * @param WP_Customize_Section $section WP_Customize_Section instance.
197
197
                 */
198
198
                $active = apply_filters( 'customize_section_active', $active, $section );
199
199
 
201
201
        }
202
202
 
203
203
        /**
204
 
         * Default callback used when invoking {@see WP_Customize_Section::active()}.
 
204
         * Default callback used when invoking WP_Customize_Section::active().
205
205
         *
206
206
         * Subclasses can override this with their specific logic, or they may provide
207
207
         * an 'active_callback' argument to the constructor.
306
306
        /**
307
307
         * Render the section UI in a subclass.
308
308
         *
309
 
         * Sections are now rendered in JS by default, see {@see WP_Customize_Section::print_template()}.
 
309
         * Sections are now rendered in JS by default, see WP_Customize_Section::print_template().
310
310
         *
311
311
         * @since 3.4.0
312
312
         */