diff --git a/src/wp-includes/ms-default-filters.php b/src/wp-includes/ms-default-filters.php index 8682d48e18e45..2bd78424026d9 100644 --- a/src/wp-includes/ms-default-filters.php +++ b/src/wp-includes/ms-default-filters.php @@ -1,4 +1,3 @@ - 'widget_text', - 'description' => __( 'Arbitrary text.' ), - 'customize_selective_refresh' => true, - 'show_instance_in_rest' => true, - ); - $control_ops = array( - 'width' => 400, - 'height' => 350, - ); - parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops ); - } +/** + * Sets up a new Text widget instance. + * + * @since 4.8.0 + */ +public function __construct() { + $widget_ops = array( + 'classname' => 'widget_text', + 'description' => __( 'Arbitrary text.' ), + 'customize_selective_refresh' => true, + 'show_instance_in_rest' => true, + ); + $control_ops = array( + 'width' => 400, + 'height' => 350, + ); + parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops ); +} + /** * Adds hooks for enqueueing assets when registering all widget instances of this widget class.