Changeset 42343 for trunk/src/wp-includes/class-wp-customize-panel.php
- Timestamp:
- 11/30/2017 11:09:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-panel.php
r41586 r42343 153 153 154 154 $this->manager = $manager; 155 $this->id = $id;155 $this->id = $id; 156 156 if ( empty( $this->active_callback ) ) { 157 157 $this->active_callback = array( $this, 'active_callback' ); … … 171 171 */ 172 172 final public function active() { 173 $panel = $this;173 $panel = $this; 174 174 $active = call_user_func( $this->active_callback, $this ); 175 175 … … 209 209 */ 210 210 public function json() { 211 $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type' ) );212 $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );213 $array['content'] = $this->get_content();214 $array['active'] = $this->active();215 $array['instanceNumber'] = $this->instance_number;211 $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type' ) ); 212 $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); 213 $array['content'] = $this->get_content(); 214 $array['active'] = $this->active(); 215 $array['instanceNumber'] = $this->instance_number; 216 216 $array['autoExpandSoleSection'] = $this->auto_expand_sole_section; 217 217 return $array; … … 319 319 <?php $this->render_template(); ?> 320 320 </script> 321 321 <?php 322 322 } 323 323 … … 359 359 <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button> 360 360 <div class="accordion-section-title"> 361 <span class="preview-notice"><?php 361 <span class="preview-notice"> 362 <?php 362 363 /* translators: %s: the site/panel title in the Customizer */ 363 364 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' ); 364 ?></span> 365 ?> 366 </span> 365 367 <# if ( data.description ) { #> 366 368 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
Note: See TracChangeset
for help on using the changeset viewer.