Don't dupe widget titles. Fixes #6349. Hat tip: mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6de702f183
commit
32d9449194
|
@ -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