WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/04/17 21:00:05 (3 weeks 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.