class-wp-customize-image-control.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * Customize API: WP_Customize_Image_Control class
  4. *
  5. * @package WordPress
  6. * @subpackage Customize
  7. * @since 4.4.0
  8. */
  9. /**
  10. * Customize Image Control class.
  11. *
  12. * @since 3.4.0
  13. *
  14. * @see WP_Customize_Upload_Control
  15. */
  16. class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
  17. /**
  18. * Control type.
  19. *
  20. * @since 3.4.0
  21. * @var string
  22. */
  23. public $type = 'image';
  24. /**
  25. * Media control mime type.
  26. *
  27. * @since 4.1.0
  28. * @var string
  29. */
  30. public $mime_type = 'image';
  31. /**
  32. * @since 3.4.2
  33. * @deprecated 4.1.0
  34. */
  35. public function prepare_control() {}
  36. /**
  37. * @since 3.4.0
  38. * @deprecated 4.1.0
  39. *
  40. * @param string $id
  41. * @param string $label
  42. * @param mixed $callback
  43. */
  44. public function add_tab( $id, $label, $callback ) {
  45. _deprecated_function( __METHOD__, '4.1.0' );
  46. }
  47. /**
  48. * @since 3.4.0
  49. * @deprecated 4.1.0
  50. *
  51. * @param string $id
  52. */
  53. public function remove_tab( $id ) {
  54. _deprecated_function( __METHOD__, '4.1.0' );
  55. }
  56. /**
  57. * @since 3.4.0
  58. * @deprecated 4.1.0
  59. *
  60. * @param string $url
  61. * @param string $thumbnail_url
  62. */
  63. public function print_tab_image( $url, $thumbnail_url = null ) {
  64. _deprecated_function( __METHOD__, '4.1.0' );
  65. }
  66. }