Make WordPress Core

Changeset 41000


Ignore:
Timestamp:
07/04/2017 09:00:05 PM (8 years ago)
Author:
westonruter
Message:

Widgets: Let Custom HTML widget be "wide" as the Text widget is.

Also update WP_Customize_Widgets::$core_widget_id_bases with the new list of core widgets.

Props obenland, westonruter.
See #40907, #40951.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r40929 r41000  
    3636     */
    3737    protected $core_widget_id_bases = array(
    38         'archives', 'calendar', 'categories', 'links', 'meta',
    39         'nav_menu', 'pages', 'recent-comments', 'recent-posts',
    40         'rss', 'search', 'tag_cloud', 'text',
     38        'archives',
     39        'calendar',
     40        'categories',
     41        'custom_html',
     42        'links',
     43        'media_audio',
     44        'media_image',
     45        'media_video',
     46        'meta',
     47        'nav_menu',
     48        'pages',
     49        'recent-comments',
     50        'recent-posts',
     51        'rss',
     52        'search',
     53        'tag_cloud',
     54        'text',
    4155    );
    4256
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r40926 r41000  
    3939            'customize_selective_refresh' => true,
    4040        );
    41         $control_ops = array();
     41        $control_ops = array(
     42            'width' => 400,
     43            'height' => 350,
     44        );
    4245        parent::__construct( 'custom_html', __( 'Custom HTML' ), $widget_ops, $control_ops );
    4346    }
Note: See TracChangeset for help on using the changeset viewer.