Ticket #34503: 34503.patch
File 34503.patch, 3.8 KB (added by , 5 years ago) |
---|
-
wp-includes/theme-compat/sidebar.php
7 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 8 * 9 9 */ 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__) ) ); 11 11 ?> 12 12 <div id="sidebar" role="complementary"> 13 13 <ul> … … 29 29 30 30 <?php /* If this is a 404 page */ if (is_404()) { ?> 31 31 <?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> 33 37 34 38 <?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> 36 45 37 46 <?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> 39 53 40 54 <?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> 42 60 43 61 <?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>‘%3$s’</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 ‘%2$s’. 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> 45 68 46 69 <?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> 48 75 49 76 <?php } ?> 50 77