WordPress.org

Make WordPress Core

Ticket #9797: 9797.2.diff

File 9797.2.diff, 760 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/widgets.php

     
    8787         *       - height 
    8888         */ 
    8989        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); 
    9191                $this->name = $name; 
    9292                $this->option_name = 'widget_' . $this->id_base; 
    9393                $this->widget_options = wp_parse_args( $widget_options, array('classname' => $this->option_name) );