wp/wp-includes/customize/class-wp-customize-new-menu-section.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Customize
     6  * @subpackage Customize
     7  * @since 4.4.0
     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.
     8  * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
     9  */
     9  */
       
    10 
       
    11 _deprecated_file( basename( __FILE__ ), '4.9.0' );
    10 
    12 
    11 /**
    13 /**
    12  * Customize Menu Section Class
    14  * Customize Menu Section Class
    13  *
    15  *
    14  * @since 4.3.0
    16  * @since 4.3.0
    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>