Widgets: Update default link_type for Gallery widget from none to post for consistency with wp.media.galleryDefaults.

Props bor0.
See #41914.
Fixes #41985.

Built from https://develop.svn.wordpress.org/trunk@41840


git-svn-id: http://core.svn.wordpress.org/trunk@41674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-10-12 04:21:46 +00:00
parent 434e3aba82
commit 663c20388b
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-beta1-41839';
$wp_version = '4.9-beta1-41840';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -75,8 +75,8 @@ class WP_Widget_Media_Gallery extends WP_Widget_Media {
),
'link_type' => array(
'type' => 'string',
'enum' => array( 'none', 'file', 'post' ),
'default' => 'none',
'enum' => array( 'post', 'file', 'none' ),
'default' => 'post',
'media_prop' => 'link',
'should_preview_update' => false,
),