Changeset 30102 for trunk/src/wp-includes/class-wp-customize-control.php
- Timestamp:
- 10/29/2014 10:50:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r30087 r30102 75 75 76 76 /** 77 * @deprecated It is better to just call the json() method 77 78 * @access public 78 79 * @var array … … 219 220 220 221 $this->json['type'] = $this->type; 222 $this->json['priority'] = $this->priority; 223 $this->json['active'] = $this->active(); 224 $this->json['section'] = $this->section; 225 $this->json['content'] = $this->get_content(); 221 226 $this->json['label'] = $this->label; 222 227 $this->json['description'] = $this->description; 223 $this->json['active'] = $this->active(); 228 } 229 230 /** 231 * Get the data to export to the client via JSON. 232 * 233 * @since 4.1.0 234 * 235 * @return array 236 */ 237 public function json() { 238 $this->to_json(); 239 return $this->json; 224 240 } 225 241 … … 242 258 243 259 return true; 260 } 261 262 /** 263 * Get the control's content for insertion into the Customizer pane. 264 * 265 * @since 4.1.0 266 * 267 * @return string 268 */ 269 public final function get_content() { 270 ob_start(); 271 $this->maybe_render(); 272 $template = trim( ob_get_contents() ); 273 ob_end_clean(); 274 return $template; 244 275 } 245 276 … … 1074 1105 * Widget Area Customize Control Class 1075 1106 * 1107 * @since 3.9.0 1076 1108 */ 1077 1109 class WP_Widget_Area_Customize_Control extends WP_Customize_Control { … … 1115 1147 /** 1116 1148 * Widget Form Customize Control Class 1149 * 1150 * @since 3.9.0 1117 1151 */ 1118 1152 class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
Note: See TracChangeset
for help on using the changeset viewer.