From 57b92c411603faf52712a717f1678b48714cdd23 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Tue, 3 Oct 2017 02:59:03 +0000 Subject: [PATCH] Widgets: Default to "custom URL" in the image widget. This changes the default value for `link_type` in the image widget schema to 'custom'. Props bor0, desrosj. Fixes #41629. git-svn-id: https://develop.svn.wordpress.org/trunk@41696 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets/class-wp-widget-media-image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/widgets/class-wp-widget-media-image.php b/src/wp-includes/widgets/class-wp-widget-media-image.php index bba1fb3f93..780ceacad5 100644 --- a/src/wp-includes/widgets/class-wp-widget-media-image.php +++ b/src/wp-includes/widgets/class-wp-widget-media-image.php @@ -92,7 +92,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media { 'link_type' => array( 'type' => 'string', 'enum' => array( 'none', 'file', 'post', 'custom' ), - 'default' => 'none', + 'default' => 'custom', 'media_prop' => 'link', 'description' => __( 'Link To' ), 'should_preview_update' => true,