Don't dupe widget titles. Fixes #6349. Hat tip: mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@7467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2145503bf
commit
1796a056d8
@ -212,7 +212,7 @@ function wp_widget_control( $sidebar_args ) {
|
||||
$wp_registered_widgets[$widget_id]['callback'] = $wp_registered_widgets[$widget_id]['_callback'];
|
||||
unset($wp_registered_widgets[$widget_id]['_callback']);
|
||||
|
||||
if ( $widget_title )
|
||||
if ( $widget_title && $widget_title != $control['name'] )
|
||||
$widget_title = sprintf( _c('%1$s: %2$s|1: widget name, 2: widget title' ), $sidebar_args['widget_name'], $widget_title );
|
||||
else
|
||||
$widget_title = wp_specialchars( strip_tags( $sidebar_args['widget_name'] ) );
|
||||
|
Loading…
Reference in New Issue
Block a user