Make WordPress Core

Ticket #25419: 25419.4.patch

File 25419.4.patch, 2.2 KB (added by eherman24, 11 years ago)

fixed whitespace issues, removed filter_var for esc_url, removed minified css files

  • wp-admin/css/widgets.css

     
    3535        user-select: none;
    3636}
    3737
     38/* Widget Dashicon Styles */
     39.wp-widget-icon {
     40        margin-left: .8em;
     41        margin-top: .8em;
     42        float: left;
     43}
     44
     45.customize-control .wp-widget-icon {
     46        margin-left: .8em;
     47        margin-top: .7em;
     48        float: left;
     49}
     50
     51        .wp-widget-icon+h4, .customize-control .wp-widget-icon+h4 {
     52                padding-left: 7px;
     53        }
     54               
    3855.widgets-holder-wrap .widget-inside {
    3956        border-top: none;
    4057        padding: 1px 15px 15px 15px;
  • wp-includes/widgets.php

     
    8383         *       - width: required if more than 250px
    8484         *       - height: currently not used but may be needed in the future
    8585         */
    86         public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
     86        public function __construct( $id_base, $name, $icon_url, $widget_options = array(), $control_options = array() ) {
    8787                $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base);
    8888                $this->name = $name;
    89                 $this->option_name = 'widget_' . $this->id_base;
     89                $this->icon_url = is_array($icon_url) || empty($icon_url) ? '' : $icon_url; // create the icon url parameter
     90                $this->option_name = 'widget_' . $this->id_base;               
    9091                $this->widget_options = wp_parse_args( $widget_options, array('classname' => $this->option_name) );
    9192                $this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) );
    9293        }
     
    9495        /**
    9596         * PHP4 constructor
    9697         */
    97         public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    98                 WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
     98        public function WP_Widget( $id_base, $name, $icon_url, $widget_options = array(), $control_options = array() ) {
     99                WP_Widget::__construct( $id_base, $name, $icon_url, $widget_options, $control_options );
    99100        }
    100101
    101102        /**