Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#38244 closed defect (bug) (wontfix)

Class name of the widget title is incorrect

Reported by: youthkee's profile youthkee Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Widgets Keywords:
Focuses: Cc:


There is an incorrect class name of the widget title at
/wp-includes/widgets.php line 250

'before_title' => '<h2 class="widgettitle">',

I think this should be as below to be applied default CSS styles.

'before_title' => '<h2 class="widget-title">',

It can be checked as accessing 404.php by some themes such as “Underscores”.

Attachments (1)

38244.diff (472 bytes) - added by youthkee 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @westonruter
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Thanks for the report! However, this cannot be changed due because of backwards compatibility for any themes that may have CSS that is targeting .widgettitle. A theme needs to opt-in to widget-title when it calls register_sidebar(). Thanks!

#2 @ocean90
7 years ago

#39408 was marked as a duplicate.

#3 @SergeyBiryukov
4 years ago

#41818 was marked as a duplicate.

Note: See TracTickets for help on using tickets.