Make WordPress Core

Ticket #26701: 26701.diff

File 26701.diff, 862 bytes (added by celloexpressions, 11 years ago)

Remove width parameter from text and RSS widget controls, so that they don't overflow and become hidden in small viewports

  • wp-includes/default-widgets.php

     
    392392
    393393        function __construct() {
    394394                $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML.'));
    395                 $control_ops = array('width' => 400, 'height' => 350);
     395                $control_ops = array( 'height' => 350 );
    396396                parent::__construct('text', __('Text'), $widget_ops, $control_ops);
    397397        }
    398398
     
    743743
    744744        function __construct() {
    745745                $widget_ops = array( 'description' => __('Entries from any RSS or Atom feed.') );
    746                 $control_ops = array( 'width' => 400, 'height' => 200 );
     746                $control_ops = array( 'height' => 200 );
    747747                parent::__construct( 'rss', __('RSS'), $widget_ops, $control_ops );
    748748        }
    749749