wp/wp-includes/customize/class-wp-customize-new-menu-control.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 control class for new menus.
    14  * Customize control class for new menus.
    13  *
    15  *
    14  * @since 4.3.0
    16  * @since 4.3.0
    28 
    30 
    29 	/**
    31 	/**
    30 	 * Constructor.
    32 	 * Constructor.
    31 	 *
    33 	 *
    32 	 * @since 4.9.0
    34 	 * @since 4.9.0
       
    35 	 * @deprecated 4.9.0
    33 	 *
    36 	 *
    34 	 * @param WP_Customize_Manager $manager Manager.
    37 	 * @see WP_Customize_Control::__construct()
    35 	 * @param string               $id      ID.
    38 	 *
    36 	 * @param array                $args    Args.
    39 	 * @param WP_Customize_Manager $manager Customizer bootstrap instance.
       
    40 	 * @param string               $id      The control ID.
       
    41 	 * @param array                $args    Optional. Arguments to override class property defaults.
       
    42 	 *                                      See WP_Customize_Control::__construct() for information
       
    43 	 *                                      on accepted arguments. Default empty array.
    37 	 */
    44 	 */
    38 	public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
    45 	public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
    39 		_deprecated_file( basename( __FILE__ ), '4.9.0' ); // @todo Move this outside of class, and remove its require_once() from class-wp-customize-control.php. See #42364.
    46 		_deprecated_function( __METHOD__, '4.9.0' );
    40 		parent::__construct( $manager, $id, $args );
    47 		parent::__construct( $manager, $id, $args );
    41 	}
    48 	}
    42 
    49 
    43 	/**
    50 	/**
    44 	 * Render the control's content.
    51 	 * Render the control's content.
    45 	 *
    52 	 *
    46 	 * @since 4.3.0
    53 	 * @since 4.3.0
       
    54 	 * @deprecated 4.9.0
    47 	 */
    55 	 */
    48 	public function render_content() {
    56 	public function render_content() {
       
    57 		_deprecated_function( __METHOD__, '4.9.0' );
    49 		?>
    58 		?>
    50 		<button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
    59 		<button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
    51 		<span class="spinner"></span>
    60 		<span class="spinner"></span>
    52 		<?php
    61 		<?php
    53 	}
    62 	}