Make WordPress Core


Ignore:
Timestamp:
08/25/2015 12:12:59 PM (9 years ago)
Author:
wonderboymusic
Message:

Media:

When inserting an image into a post, the values in wp.media.controller.Library should not default to linking the image when no user settings are present.

The default display setting value for link is now none. User settings persist and will override or confirm this value based on user actions.

Props liljimmi, janhenckens, eherman24, wonderboymusic.
Fixes #31467.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r33329 r33729  
    653653                    <option value="file">
    654654                <# } else { #>
    655                     <option value="file" selected>
     655                    <option value="none" selected>
     656                        <?php esc_attr_e('None'); ?>
     657                    </option>
     658                    <option value="file">
    656659                <# } #>
    657660                    <# if ( data.model.canEmbed ) { #>
     
    671674                    <option value="custom">
    672675                        <?php esc_attr_e('Custom URL'); ?>
    673                     </option>
    674                     <option value="none">
    675                         <?php esc_attr_e('None'); ?>
    676676                    </option>
    677677                <# } #>
Note: See TracChangeset for help on using the changeset viewer.