WordPress.org

Make WordPress Core

Ticket #6226: widgets-i18n-description.diff

File widgets-i18n-description.diff, 770 bytes (added by nbachiyski, 6 years ago)

Add description for one string

  • wp-admin/includes/widgets.php

     
    199199        unset($wp_registered_widgets[$widget_id]['_callback']); 
    200200 
    201201        if ( $widget_title ) 
    202                 $widget_title = sprintf( _c('%1$s: %2$s|widget_admin_title' ), $sidebar_args['widget_name'], $widget_title ); 
     202                $widget_title = sprintf( _c('%1$s: %2$s|1: widget name, 2: widget title' ), $sidebar_args['widget_name'], $widget_title ); 
    203203        else 
    204204                $widget_title = wp_specialchars( strip_tags( $sidebar_args['widget_name'] ) ); 
    205205 
    206  
    207206        if ( empty($sidebar_args['_display']) || 'template' != $sidebar_args['_display'] ) 
    208207                echo $sidebar_args['before_widget']; 
    209208?>