Make WordPress Core

Ticket #46978: 46978.diff

File 46978.diff, 1.8 KB (added by afercia, 5 years ago)
  • src/wp-includes/widgets/class-wp-widget-meta.php

     
    5656                        <ul>
    5757                        <?php wp_register(); ?>
    5858                        <li><?php wp_loginout(); ?></li>
    59                         <li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
    60                         <li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
     59                        <li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries feed' ); ?></a></li>
     60                        <li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments feed' ); ?></a></li>
    6161                        <?php
    6262                        /**
    63                          * Filters the "Powered by WordPress" text in the Meta widget.
     63                         * Filters the "WordPress.org" list item HTML in the Meta widget.
    6464                         *
    6565                         * @since 3.6.0
    6666                         * @since 4.9.0 Added the `$instance` parameter.
    6767                         *
    68                          * @param string $title_text Default title text for the WordPress.org link.
    69                          * @param array  $instance   Array of settings for the current widget.
     68                         * @param string $html     Default HTML for the WordPress.org list item.
     69                         * @param array  $instance Array of settings for the current widget.
    7070                         */
    7171                        echo apply_filters(
    7272                                'widget_meta_poweredby',
    7373                                sprintf(
    74                                         '<li><a href="%s" title="%s">%s</a></li>',
     74                                        '<li><a href="%1$s">%2$s</a></li>',
    7575                                        esc_url( __( 'https://wordpress.org/' ) ),
    76                                         esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),
    7776                                        __( 'WordPress.org' )
    7877                                ),
    7978                                $instance