summaryrefslogtreecommitdiffstats
path: root/wp-includes/customize/class-wp-customize-image-control.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/customize/class-wp-customize-image-control.php')
-rw-r--r--wp-includes/customize/class-wp-customize-image-control.php72
1 files changed, 72 insertions, 0 deletions
diff --git a/wp-includes/customize/class-wp-customize-image-control.php b/wp-includes/customize/class-wp-customize-image-control.php
new file mode 100644
index 0000000..03575d0
--- /dev/null
+++ b/wp-includes/customize/class-wp-customize-image-control.php
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Customize API: WP_Customize_Image_Control class
+ *
+ * @package WordPress
+ * @subpackage Customize
+ * @since 4.4.0
+ */
+
+/**
+ * Customize Image Control class.
+ *
+ * @since 3.4.0
+ *
+ * @see WP_Customize_Upload_Control
+ */
+class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
+ /**
+ * Control type.
+ *
+ * @since 3.4.0
+ * @var string
+ */
+ public $type = 'image';
+
+ /**
+ * Media control mime type.
+ *
+ * @since 4.1.0
+ * @var string
+ */
+ public $mime_type = 'image';
+
+ /**
+ * @since 3.4.2
+ * @deprecated 4.1.0
+ */
+ public function prepare_control() {}
+
+ /**
+ * @since 3.4.0
+ * @deprecated 4.1.0
+ *
+ * @param string $id
+ * @param string $label
+ * @param mixed $callback
+ */
+ public function add_tab( $id, $label, $callback ) {
+ _deprecated_function( __METHOD__, '4.1.0' );
+ }
+
+ /**
+ * @since 3.4.0
+ * @deprecated 4.1.0
+ *
+ * @param string $id
+ */
+ public function remove_tab( $id ) {
+ _deprecated_function( __METHOD__, '4.1.0' );
+ }
+
+ /**
+ * @since 3.4.0
+ * @deprecated 4.1.0
+ *
+ * @param string $url
+ * @param string $thumbnail_url
+ */
+ public function print_tab_image( $url, $thumbnail_url = null ) {
+ _deprecated_function( __METHOD__, '4.1.0' );
+ }
+}