Make WordPress Core

Ticket #14358: 14358.2.diff

File 14358.2.diff, 1.3 KB (added by SergeyBiryukov, 12 years ago)

Keep the WP.org link translatable

  • wp-includes/default-widgets.php

     
    315315                        <li><?php wp_loginout(); ?></li>
    316316                        <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    317317                        <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
    318                         <li><a href="<?php esc_attr_e( 'http://wordpress.org/' ); ?>" title="<?php echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>"><?php
    319                         /* translators: meta widget link text */
    320                         _e( 'WordPress.org' );
    321                         ?></a></li>
     318                        <?php echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</li>',
     319                                esc_url( __( 'http://wordpress.org/' ) ),
     320                                esc_attr( __( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ) ),
     321                                /* translators: meta widget link text */
     322                                __( 'WordPress.org' )
     323                        ) ); ?>
    322324                        <?php wp_meta(); ?>
    323325                        </ul>
    324326<?php