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. Built from https://develop.svn.wordpress.org/trunk@41000 git-svn-id: http://core.svn.wordpress.org/trunk@40850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa2f4b047a
commit
046fb8a987
|
@ -35,9 +35,23 @@ final class WP_Customize_Widgets {
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $core_widget_id_bases = array(
|
protected $core_widget_id_bases = array(
|
||||||
'archives', 'calendar', 'categories', 'links', 'meta',
|
'archives',
|
||||||
'nav_menu', 'pages', 'recent-comments', 'recent-posts',
|
'calendar',
|
||||||
'rss', 'search', 'tag_cloud', 'text',
|
'categories',
|
||||||
|
'custom_html',
|
||||||
|
'links',
|
||||||
|
'media_audio',
|
||||||
|
'media_image',
|
||||||
|
'media_video',
|
||||||
|
'meta',
|
||||||
|
'nav_menu',
|
||||||
|
'pages',
|
||||||
|
'recent-comments',
|
||||||
|
'recent-posts',
|
||||||
|
'rss',
|
||||||
|
'search',
|
||||||
|
'tag_cloud',
|
||||||
|
'text',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-40999';
|
$wp_version = '4.9-alpha-41000';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -38,7 +38,10 @@ class WP_Widget_Custom_HTML extends WP_Widget {
|
||||||
'description' => __( 'Arbitrary HTML code.' ),
|
'description' => __( 'Arbitrary HTML code.' ),
|
||||||
'customize_selective_refresh' => true,
|
'customize_selective_refresh' => true,
|
||||||
);
|
);
|
||||||
$control_ops = array();
|
$control_ops = array(
|
||||||
|
'width' => 400,
|
||||||
|
'height' => 350,
|
||||||
|
);
|
||||||
parent::__construct( 'custom_html', __( 'Custom HTML' ), $widget_ops, $control_ops );
|
parent::__construct( 'custom_html', __( 'Custom HTML' ), $widget_ops, $control_ops );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue