Ticket #25419: 25419.4.patch
File 25419.4.patch, 2.2 KB (added by , 11 years ago) |
---|
-
wp-admin/css/widgets.css
35 35 user-select: none; 36 36 } 37 37 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 38 55 .widgets-holder-wrap .widget-inside { 39 56 border-top: none; 40 57 padding: 1px 15px 15px 15px; -
wp-includes/widgets.php
83 83 * - width: required if more than 250px 84 84 * - height: currently not used but may be needed in the future 85 85 */ 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() ) { 87 87 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base); 88 88 $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; 90 91 $this->widget_options = wp_parse_args( $widget_options, array('classname' => $this->option_name) ); 91 92 $this->control_options = wp_parse_args( $control_options, array('id_base' => $this->id_base) ); 92 93 } … … 94 95 /** 95 96 * PHP4 constructor 96 97 */ 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 ); 99 100 } 100 101 101 102 /**