Ticket #9797: 9797.2.diff
File 9797.2.diff, 760 bytes (added by , 15 years ago) |
---|
-
wp-includes/widgets.php
87 87 * - height 88 88 */ 89 89 function __construct( $id_base = false, $name, $widget_options = array(), $control_options = array() ) { 90 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : $id_base;90 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base); 91 91 $this->name = $name; 92 92 $this->option_name = 'widget_' . $this->id_base; 93 93 $this->widget_options = wp_parse_args( $widget_options, array('classname' => $this->option_name) );