WordPress.org

Make WordPress Core

Ticket #34503: 34503.2.patch

File 34503.2.patch, 7.5 KB (added by ramiy, 5 years ago)

fixing strings in all the theme-compat files

  • wp-includes/theme-compat/comments-popup.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file( sprintf( __( 'Theme without %s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %s template in your theme.'), basename(__FILE__) ) );
    1111?><!DOCTYPE html>
    1212<html xmlns="http://www.w3.org/1999/xhtml">
    1313<head>
  • wp-includes/theme-compat/comments.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file( sprintf( __( 'Theme without %s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %s template in your theme.'), basename(__FILE__) ) );
    1111
    1212// Do not delete these lines
    1313        if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
     
    7979
    8080<?php if ( is_user_logged_in() ) : ?>
    8181
    82 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
     82<p><?php printf(__('Logged in as %s.'), '<a href="' . get_edit_user_link() . '">' . $user_identity . '</a>' ); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
    8383
    8484<?php else : ?>
    8585
  • wp-includes/theme-compat/footer.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file( sprintf( __( 'Theme without %s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %s template in your theme.'), basename(__FILE__) ) );
    1111?>
    1212
    1313<hr />
  • wp-includes/theme-compat/header.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file( sprintf( __( 'Theme without %s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %s template in your theme.'), basename(__FILE__) ) );
    1111?>
    1212<!DOCTYPE html>
    1313<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  • wp-includes/theme-compat/sidebar.php

     
    77 * This file is here for Backwards compatibility with old themes and will be removed in a future version
    88 *
    99 */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     10_deprecated_file( sprintf( __( 'Theme without %s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %s template in your theme.'), basename(__FILE__) ) );
    1111?>
    1212        <div id="sidebar" role="complementary">
    1313                <ul>
     
    2929
    3030                        <?php /* If this is a 404 page */ if (is_404()) { ?>
    3131                        <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    32                         <p><?php printf(__('You are currently browsing the archives for the %s category.'), single_cat_title('', false)); ?></p>
     32                        <p><?php printf(
     33                                                __('You are currently browsing the archives for the %s category.'),
     34                                                single_cat_title('', false)
     35                                        );
     36                        ?></p>
    3337
    3438                        <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    35                         <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y'))); ?></p>
     39                        <p><?php printf(
     40                                                __('You are currently browsing the %1$s blog archives for the day %2$s.'),
     41                                                '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a>',
     42                                                get_the_time(__('l, F jS, Y'))
     43                                        );
     44                        ?></p>
    3645
    3746                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    38                         <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y'))); ?></p>
     47                        <p><?php printf(
     48                                                __('You are currently browsing the %1$s blog archives for %2$s.'),
     49                                                '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a>',
     50                                                get_the_time(__('F, Y'))
     51                                        );
     52                        ?></p>
    3953
    4054                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    41                         <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
     55                        <p><?php printf(
     56                                                __('You are currently browsing the %1$s blog archives for the year %2$s.'),
     57                                                '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a>',
     58                                                get_the_time('Y'));
     59                        ?></p>
    4260
    4361                        <?php /* If this is a search result */ } elseif (is_search()) { ?>
    44                         <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.'), get_bloginfo('url'), get_bloginfo('name'), esc_html( get_search_query() ) ); ?></p>
     62                        <p><?php printf(
     63                                                __('You have searched the %1$s blog archives for &#8216;%2$s&#8217;. If you are unable to find anything in these search results, you can try one of these links.'),
     64                                                '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a>',
     65                                                '<strong>' . esc_html( get_search_query() ) . '</strong>'
     66                                        );
     67                        ?></p>
    4568
    4669                        <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    47                         <p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
     70                        <p><?php printf(
     71                                                __('You are currently browsing the %s blog archives.'),
     72                                                '<a href="' . get_bloginfo('url') . '/">' . get_bloginfo('name') . '</a>',
     73                                        );
     74                        ?></p>
    4875
    4976                        <?php } ?>
    5077