Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#24008 closed enhancement (invalid)

Widgets title improvement

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

Description

we have now:

$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base );

why not to use?

$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $this->name : $instance['title'], $instance, $this->id_base );

Change History (1)

#1 @ocean90
10 years ago

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

Because widget name isn't the same as the the widget title, even they have the same values.

Note: See TracTickets for help on using tickets.