WordPress.org

Make WordPress Core

Changeset 41840


Ignore:
Timestamp:
10/12/2017 04:20:32 AM (8 months ago)
Author:
westonruter
Message:

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

Props bor0.
See #41914.
Fixes #41985.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-media-gallery.php

    r41772 r41840  
    7676            'link_type' => array(
    7777                'type' => 'string',
    78                 'enum' => array( 'none', 'file', 'post' ),
    79                 'default' => 'none',
     78                'enum' => array( 'post', 'file', 'none' ),
     79                'default' => 'post',
    8080                'media_prop' => 'link',
    8181                'should_preview_update' => false,
Note: See TracChangeset for help on using the changeset viewer.