30 * Constructor. |
32 * Constructor. |
31 * |
33 * |
32 * Any supplied $args override class property defaults. |
34 * Any supplied $args override class property defaults. |
33 * |
35 * |
34 * @since 4.9.0 |
36 * @since 4.9.0 |
|
37 * @deprecated 4.9.0 |
35 * |
38 * |
36 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
39 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
37 * @param string $id An specific ID of the section. |
40 * @param string $id A specific ID of the section. |
38 * @param array $args Section arguments. |
41 * @param array $args Section arguments. |
39 */ |
42 */ |
40 public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { |
43 public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { |
41 _deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class, and remove its require_once() from class-wp-customize-section.php. See #42364. |
44 _deprecated_function( __METHOD__, '4.9.0' ); |
42 parent::__construct( $manager, $id, $args ); |
45 parent::__construct( $manager, $id, $args ); |
43 } |
46 } |
44 |
47 |
45 /** |
48 /** |
46 * Render the section, and the controls that have been added to it. |
49 * Render the section, and the controls that have been added to it. |
47 * |
50 * |
48 * @since 4.3.0 |
51 * @since 4.3.0 |
|
52 * @deprecated 4.9.0 |
49 */ |
53 */ |
50 protected function render() { |
54 protected function render() { |
|
55 _deprecated_function( __METHOD__, '4.9.0' ); |
51 ?> |
56 ?> |
52 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu"> |
57 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu"> |
53 <button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false"> |
58 <button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false"> |
54 <?php echo esc_html( $this->title ); ?> |
59 <?php echo esc_html( $this->title ); ?> |
55 </button> |
60 </button> |