WordPress.org

Make WordPress Core

Ticket #26668: widget_strings.patch

File widget_strings.patch, 1.7 KB (added by pavelevap, 4 years ago)
  • wp-content/themes/twentyfourteen/inc/widgets.php

     
    4343        public function __construct() {
    4444                parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array(
    4545                        'classname'   => 'widget_twentyfourteen_ephemera',
    46                         'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts', 'twentyfourteen' ),
     46                        'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts.', 'twentyfourteen' ),
    4747                ) );
    4848
    4949                /*
  • wp-includes/default-widgets.php

     
    191191
    192192        function __construct() {
    193193                $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your site.") );
    194                 parent::__construct('search', __('Search'), $widget_ops);
     194                parent::__construct( 'search', _x( 'Search', 'Search widget' ), $widget_ops );
    195195        }
    196196
    197197        function widget( $args, $instance ) {
     
    298298class WP_Widget_Meta extends WP_Widget {
    299299
    300300        function __construct() {
    301                 $widget_ops = array('classname' => 'widget_meta', 'description' => __( "Login, RSS, & WordPress.org links.") );
     301                $widget_ops = array( 'classname' => 'widget_meta', 'description' => __( "Login, RSS & WordPress.org links." ) );
    302302                parent::__construct('meta', __('Meta'), $widget_ops);
    303303        }
    304304