class-wp-customize-new-menu-control.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Customize API: WP_Customize_New_Menu_Control 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. _deprecated_file( basename( __FILE__ ), '4.9.0' );
  11. /**
  12. * Customize control class for new menus.
  13. *
  14. * @since 4.3.0
  15. * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
  16. *
  17. * @see WP_Customize_Control
  18. */
  19. class WP_Customize_New_Menu_Control extends WP_Customize_Control {
  20. /**
  21. * Control type.
  22. *
  23. * @since 4.3.0
  24. * @var string
  25. */
  26. public $type = 'new_menu';
  27. /**
  28. * Constructor.
  29. *
  30. * @since 4.9.0
  31. * @deprecated 4.9.0
  32. *
  33. * @see WP_Customize_Control::__construct()
  34. *
  35. * @param WP_Customize_Manager $manager Customizer bootstrap instance.
  36. * @param string $id The control ID.
  37. * @param array $args Optional. Arguments to override class property defaults.
  38. * See WP_Customize_Control::__construct() for information
  39. * on accepted arguments. Default empty array.
  40. */
  41. public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
  42. _deprecated_function( __METHOD__, '4.9.0' );
  43. parent::__construct( $manager, $id, $args );
  44. }
  45. /**
  46. * Render the control's content.
  47. *
  48. * @since 4.3.0
  49. * @deprecated 4.9.0
  50. */
  51. public function render_content() {
  52. _deprecated_function( __METHOD__, '4.9.0' );
  53. ?>
  54. <button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
  55. <span class="spinner"></span>
  56. <?php
  57. }
  58. }