WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/11/2017 09:10:54 PM (4 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/default-widgets.php

    r34408 r40640  
    1919/** WP_Widget_Archives class */
    2020require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php' );
     21
     22/** WP_Widget_Media class */
     23require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media.php' );
     24
     25/** WP_Widget_Media_Audio class */
     26require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-audio.php' );
     27
     28/** WP_Widget_Media_Image class */
     29require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-image.php' );
     30
     31/** WP_Widget_Media_Video class */
     32require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-media-video.php' );
     33
     34/** WP_Widget_Meta class */
     35require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php' );
    2136
    2237/** WP_Widget_Meta class */
Note: See TracChangeset for help on using the changeset viewer.