WordPress.org

Make WordPress Core

Ticket #42001: 42001.2.diff

File 42001.2.diff, 1.6 KB (added by audrasjb, 3 months ago)

Reducing widgets width to 250

  • src/wp-includes/widgets/class-wp-widget-custom-html.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-custom-html.php b/src/wp-includes/widgets/class-wp-widget-custom-html.php
    index 93fb579..cda6a9f 100644
    a b class WP_Widget_Custom_HTML extends WP_Widget { 
    4747                        'customize_selective_refresh' => true,
    4848                );
    4949                $control_ops = array(
    50                         'width'  => 400,
     50                        'width'  => 250,
    5151                        'height' => 350,
    5252                );
    5353                parent::__construct( 'custom_html', __( 'Custom HTML' ), $widget_ops, $control_ops );
  • src/wp-includes/widgets/class-wp-widget-rss.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-rss.php b/src/wp-includes/widgets/class-wp-widget-rss.php
    index 570e7bb..7e2bd21 100644
    a b class WP_Widget_RSS extends WP_Widget { 
    2727                        'customize_selective_refresh' => true,
    2828                );
    2929                $control_ops = array(
    30                         'width'  => 400,
     30                        'width'  => 250,
    3131                        'height' => 200,
    3232                );
    3333                parent::__construct( 'rss', __( 'RSS' ), $widget_ops, $control_ops );
  • src/wp-includes/widgets/class-wp-widget-text.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-text.php b/src/wp-includes/widgets/class-wp-widget-text.php
    index c70c258..d2aaeff 100644
    a b class WP_Widget_Text extends WP_Widget { 
    3636                        'customize_selective_refresh' => true,
    3737                );
    3838                $control_ops = array(
    39                         'width'  => 400,
     39                        'width'  => 250,
    4040                        'height' => 350,
    4141                );
    4242                parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops );