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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /**
  11. * Customize control class for new menus.
  12. *
  13. * @since 4.3.0
  14. * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
  15. *
  16. * @see WP_Customize_Control
  17. */
  18. class WP_Customize_New_Menu_Control extends WP_Customize_Control {
  19. /**
  20. * Control type.
  21. *
  22. * @since 4.3.0
  23. * @var string
  24. */
  25. public $type = 'new_menu';
  26. /**
  27. * Constructor.
  28. *
  29. * @since 4.9.0
  30. *
  31. * @param WP_Customize_Manager $manager Manager.
  32. * @param string $id ID.
  33. * @param array $args Args.
  34. */
  35. public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
  36. _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.
  37. parent::__construct( $manager, $id, $args );
  38. }
  39. /**
  40. * Render the control's content.
  41. *
  42. * @since 4.3.0
  43. */
  44. public function render_content() {
  45. ?>
  46. <button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
  47. <span class="spinner"></span>
  48. <?php
  49. }
  50. }