diff --git a/wp-includes/version.php b/wp-includes/version.php index cf010453b6..d8d00f1a84 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-beta2-40834'; +$wp_version = '4.8-beta2-40835'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-media-audio.php b/wp-includes/widgets/class-wp-widget-media-audio.php index 569b620b0d..c6f8c53e9e 100644 --- a/wp-includes/widgets/class-wp-widget-media-audio.php +++ b/wp-includes/widgets/class-wp-widget-media-audio.php @@ -64,10 +64,12 @@ class WP_Widget_Media_Audio extends WP_Widget_Media { 'type' => 'string', 'enum' => array( 'none', 'auto', 'metadata' ), 'default' => 'none', + 'description' => __( 'Preload' ), ), 'loop' => array( 'type' => 'boolean', 'default' => false, + 'description' => __( 'Loop' ), ), ) ); diff --git a/wp-includes/widgets/class-wp-widget-media-image.php b/wp-includes/widgets/class-wp-widget-media-image.php index 1998ff0c7c..63e3ef685f 100644 --- a/wp-includes/widgets/class-wp-widget-media-image.php +++ b/wp-includes/widgets/class-wp-widget-media-image.php @@ -63,34 +63,40 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'type' => 'string', 'enum' => array_merge( get_intermediate_image_sizes(), array( 'full', 'custom' ) ), 'default' => 'medium', + 'description' => __( 'Size' ), ), 'width' => array( // Via 'customWidth', only when size=custom; otherwise via 'width'. 'type' => 'integer', 'minimum' => 0, 'default' => 0, + 'description' => __( 'Width' ), ), 'height' => array( // Via 'customHeight', only when size=custom; otherwise via 'height'. 'type' => 'integer', 'minimum' => 0, 'default' => 0, + 'description' => __( 'Height' ), ), 'caption' => array( 'type' => 'string', 'default' => '', 'sanitize_callback' => 'wp_kses_post', + 'description' => __( 'Caption' ), 'should_preview_update' => false, ), 'alt' => array( 'type' => 'string', 'default' => '', 'sanitize_callback' => 'sanitize_text_field', + 'description' => __( 'Alternative Text' ), ), 'link_type' => array( 'type' => 'string', 'enum' => array( 'none', 'file', 'post', 'custom' ), 'default' => 'none', 'media_prop' => 'link', + 'description' => __( 'Link To' ), 'should_preview_update' => false, ), 'link_url' => array( @@ -98,6 +104,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'default' => '', 'format' => 'uri', 'media_prop' => 'linkUrl', + 'description' => __( 'URL' ), 'should_preview_update' => false, ), 'image_classes' => array( @@ -105,6 +112,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'default' => '', 'sanitize_callback' => array( $this, 'sanitize_token_list' ), 'media_prop' => 'extraClasses', + 'description' => __( 'Image CSS Class' ), 'should_preview_update' => false, ), 'link_classes' => array( @@ -113,18 +121,21 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'sanitize_callback' => array( $this, 'sanitize_token_list' ), 'media_prop' => 'linkClassName', 'should_preview_update' => false, + 'description' => __( 'Link CSS Class' ), ), 'link_rel' => array( 'type' => 'string', 'default' => '', 'sanitize_callback' => array( $this, 'sanitize_token_list' ), 'media_prop' => 'linkRel', + 'description' => __( 'Link Rel' ), 'should_preview_update' => false, ), - 'link_target_blank' => array( // Via 'linkTargetBlank' property. + 'link_target_blank' => array( 'type' => 'boolean', 'default' => false, 'media_prop' => 'linkTargetBlank', + 'description' => __( 'Open link in a new tab' ), 'should_preview_update' => false, ), 'image_title' => array( @@ -132,6 +143,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'default' => '', 'sanitize_callback' => 'sanitize_text_field', 'media_prop' => 'title', + 'description' => __( 'Image Title Attribute' ), 'should_preview_update' => false, ), diff --git a/wp-includes/widgets/class-wp-widget-media-video.php b/wp-includes/widgets/class-wp-widget-media-video.php index 5816286e06..dd90bfac6b 100644 --- a/wp-includes/widgets/class-wp-widget-media-video.php +++ b/wp-includes/widgets/class-wp-widget-media-video.php @@ -65,11 +65,13 @@ class WP_Widget_Media_Video extends WP_Widget_Media { 'type' => 'string', 'enum' => array( 'none', 'auto', 'metadata' ), 'default' => 'metadata', + 'description' => __( 'Preload' ), 'should_preview_update' => false, ), 'loop' => array( 'type' => 'boolean', 'default' => false, + 'description' => __( 'Loop' ), 'should_preview_update' => false, ), 'content' => array(