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 } |