WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 5 months ago

#38244 closed defect (bug) (wontfix)

Class name of the widget title is incorrect

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

Description

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 4 years ago.

Download all attachments as: .zip

Change History (4)

@youthkee
4 years ago

#1 @westonruter
4 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
3 years ago

#39408 was marked as a duplicate.

#3 @SergeyBiryukov
5 months ago

#41818 was marked as a duplicate.

Note: See TracTickets for help on using tickets.