Make WordPress Core


Ignore:
Timestamp:
05/11/2017 09:10:54 PM (8 years ago)
Author:
westonruter
Message:

Widgets: Introduce media widgets for images, audio, and video with extensible base for additional media widgets in the future.

The last time a new widget was introduced, Vuvuzelas were a thing, Angry Birds started taking over phones, and WordPress stopped shipping with Kubrick. Seven years and 17 releases without new widgets have been enough, time to spice up your sidebar!

Props westonruter, melchoyce, obenland, timmydcrawford, adamsilverstein, gonom9, wonderboymusic, Fab1en, DrewAPicture, sirbrillig, joen, matias, samikeijonen, afercia, celloexpressions, designsimply, michelleweber, ranh, kjellr, karmatosed.
Fixes #32417, #39993, #39994, #39995.

File:
1 edited

Legend:

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

    r40573 r40640  
    609609
    610610        <# if ( 'image' === data.type ) { #>
    611             <label class="setting">
     611            <label class="setting align">
    612612                <span><?php _e('Alignment'); ?></span>
    613613                <select class="alignment"
     
    10881088                </div>
    10891089
    1090                 <label class="setting checkbox-setting">
     1090                <label class="setting checkbox-setting autoplay">
    10911091                    <input type="checkbox" data-setting="autoplay" />
    10921092                    <span><?php _e( 'Autoplay' ); ?></span>
     
    11771177                </div>
    11781178
    1179                 <label class="setting checkbox-setting">
     1179                <label class="setting checkbox-setting autoplay">
    11801180                    <input type="checkbox" data-setting="autoplay" />
    11811181                    <span><?php _e( 'Autoplay' ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.