Ticket #22182: update_section_titles.diff
File update_section_titles.diff, 738 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-wp-customize-manager.php
259 259 } 260 260 261 261 /** 262 * Update registered section titles. 263 * 264 * @since 3.5.0 265 * 266 * @param array $titles Array of section titles. 267 * 268 */ 269 public function update_section_titles( $titles = null ) { 270 if( !is_array($titles) ) 271 return; 272 273 foreach( $titles as $title => $label ) 274 if( in_array( $title, array_keys($this->sections) ) ) 275 $this->sections[$title]->title = $label; 276 } 277 278 /** 262 279 * Checks if the current theme is active. 263 280 * 264 281 * @since 3.4.0