Diff: STRATO-apps/wordpress_03/app/wp-includes/customize/class-wp-customize-new-menu-section.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Customize API: WP_Customize_New_Menu_Section class
4 + *
5 + * @package WordPress
6 + * @subpackage Customize
7 + * @since 4.4.0
8 + * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
9 + */
10 +
11 + _deprecated_file( basename( __FILE__ ), '4.9.0' );
12 +
13 + /**
14 + * Customize Menu Section Class
15 + *
16 + * @since 4.3.0
17 + * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
18 + *
19 + * @see WP_Customize_Section
20 + */
21 + class WP_Customize_New_Menu_Section extends WP_Customize_Section {
22 +
23 + /**
24 + * Control type.
25 + *
26 + * @since 4.3.0
27 + * @var string
28 + */
29 + public $type = 'new_menu';
30 +
31 + /**
32 + * Constructor.
33 + *
34 + * Any supplied $args override class property defaults.
35 + *
36 + * @since 4.9.0
37 + * @deprecated 4.9.0
38 + *
39 + * @param WP_Customize_Manager $manager Customizer bootstrap instance.
40 + * @param string $id A specific ID of the section.
41 + * @param array $args Section arguments.
42 + */
43 + public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
44 + _deprecated_function( __METHOD__, '4.9.0' );
45 + parent::__construct( $manager, $id, $args );
46 + }
47 +
48 + /**
49 + * Render the section, and the controls that have been added to it.
50 + *
51 + * @since 4.3.0
52 + * @deprecated 4.9.0
53 + */
54 + protected function render() {
55 + _deprecated_function( __METHOD__, '4.9.0' );
56 + ?>
57 + <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
58 + <button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false">
59 + <?php echo esc_html( $this->title ); ?>
60 + </button>
61 + <ul class="new-menu-section-content"></ul>
62 + </li>
63 + <?php
64 + }
65 + }
66 +