Make WordPress Core

Ticket #41985: 41985.patch

File 41985.patch, 1.2 KB (added by bor0, 9 years ago)
  • wp-includes/widgets/class-wp-widget-media-gallery.php

     
    7575                        ),
    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,
    8282                        ),
  • wp-includes/widgets/class-wp-widget-media-image.php

     
    9191                                ),
    9292                                'link_type' => array(
    9393                                        'type' => 'string',
    94                                         'enum' => array( 'none', 'file', 'post', 'custom' ),
    95                                         'default' => 'none',
     94                                        'enum' => array( 'post', 'file', 'custom', 'none' ),
     95                                        'default' => 'post',
    9696                                        'media_prop' => 'link',
    9797                                        'description' => __( 'Link To' ),
    9898                                        'should_preview_update' => true,