Ticket #15476: twentyten-cleanup.diff

File twentyten-cleanup.diff, 8.0 KB (added by lancewillett, 3 years ago)
Line 
1Index: footer.php
2===================================================================
3--- footer.php  (revision 16457)
4+++ footer.php  (working copy)
5@@ -23,17 +23,14 @@
6 ?>
7 
8                        <div id="site-info">
9-                               <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
10+                               <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
11                                        <?php bloginfo( 'name' ); ?>
12                                </a>
13                        </div><!-- #site-info -->
14 
15                        <div id="site-generator">
16                                <?php do_action( 'twentyten_credits' ); ?>
17-                               <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>"
18-                                               title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator">
19-                                       <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?>
20-                               </a>
21+                               <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
22                        </div><!-- #site-generator -->
23 
24                </div><!-- #colophon -->
25Index: loop-attachment.php
26===================================================================
27--- loop-attachment.php (revision 16457)
28+++ loop-attachment.php (working copy)
29@@ -29,7 +29,7 @@
30 
31                                        <div class="entry-meta">
32                                                <?php
33-                                                       printf(__('<span class="%1$s">By</span> %2$s', 'twentyten'),
34+                                                       printf( __( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
35                                                                'meta-prep meta-prep-author',
36                                                                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
37                                                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
38@@ -40,7 +40,7 @@
39                                                ?>
40                                                <span class="meta-sep">|</span>
41                                                <?php
42-                                                       printf( __('<span class="%1$s">Published</span> %2$s', 'twentyten'),
43+                                                       printf( __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
44                                                                'meta-prep meta-prep-entry-date',
45                                                                sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
46                                                                        esc_attr( get_the_time() ),
47@@ -50,10 +50,10 @@
48                                                        if ( wp_attachment_is_image() ) {
49                                                                echo ' <span class="meta-sep">|</span> ';
50                                                                $metadata = wp_get_attachment_metadata();
51-                                                               printf( __( 'Full size is %s pixels', 'twentyten'),
52+                                                               printf( __( 'Full size is %s pixels', 'twentyten' ),
53                                                                        sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
54                                                                                wp_get_attachment_url(),
55-                                                                               esc_attr( __('Link to full-size image', 'twentyten') ),
56+                                                                               esc_attr( __( 'Link to full-size image', 'twentyten' ) ),
57                                                                                $metadata['width'],
58                                                                                $metadata['height']
59                                                                        )
60Index: rtl.css
61===================================================================
62--- rtl.css     (revision 16457)
63+++ rtl.css     (working copy)
64@@ -94,7 +94,7 @@
65 -------------------------------------------------------------- */
66 
67 /* Text elements */
68-ul {
69+ul, ol {
70        margin: 0 1.5em 18px 0;
71 }
72 blockquote {
73Index: index.php
74===================================================================
75--- index.php   (revision 16457)
76+++ index.php   (working copy)
77@@ -4,7 +4,7 @@
78  *
79  * This is the most generic template file in a WordPress theme
80  * and one of the two required files for a theme (the other being style.css).
81- * It is used to display a page when nothing more specific matches a query.
82+ * It is used to display a page when nothing more specific matches a query.
83  * E.g., it puts together the home page when no home.php file exists.
84  * Learn more: http://codex.wordpress.org/Template_Hierarchy
85  *
86Index: functions.php
87===================================================================
88--- functions.php       (revision 16457)
89+++ functions.php       (working copy)
90@@ -335,7 +335,7 @@
91                case 'trackback' :
92        ?>
93        <li class="post pingback">
94-               <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p>
95+               <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
96        <?php
97                        break;
98        endswitch;
99Index: sidebar.php
100===================================================================
101--- sidebar.php (revision 16457)
102+++ sidebar.php (working copy)
103@@ -18,7 +18,7 @@
104         * some default sidebar stuff just in case.
105         */
106        if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
107-       
108+
109                        <li id="search" class="widget-container widget_search">
110                                <?php get_search_form(); ?>
111                        </li>
112Index: loop.php
113===================================================================
114--- loop.php    (revision 16457)
115+++ loop.php    (working copy)
116@@ -57,7 +57,7 @@
117 
118 <?php /* How to display posts in the Gallery category. */ ?>
119 
120-       <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
121+       <?php if ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
122                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
123                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
124 
125@@ -68,8 +68,8 @@
126                        <div class="entry-content">
127 <?php if ( post_password_required() ) : ?>
128                                <?php the_content(); ?>
129-<?php else : ?>                       
130-                               <?php
131+<?php else : ?>
132+                               <?php
133                                        $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
134                                        if ( $images ) :
135                                                $total_images = count( $images );
136@@ -89,7 +89,7 @@
137                        </div><!-- .entry-content -->
138 
139                        <div class="entry-utility">
140-                               <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
141+                               <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
142                                <span class="meta-sep">|</span>
143                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
144                                <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
145@@ -98,7 +98,7 @@
146 
147 <?php /* How to display posts in the asides category */ ?>
148 
149-       <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) || 'aside' == get_post_format( $post->ID ) ) : ?>
150+       <?php elseif ( in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) || 'aside' == get_post_format( $post->ID ) ) : ?>
151                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
152 
153                <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
154Index: archive.php
155===================================================================
156--- archive.php (revision 16457)
157+++ archive.php (working copy)
158@@ -32,9 +32,9 @@
159 <?php if ( is_day() ) : ?>
160                                <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
161 <?php elseif ( is_month() ) : ?>
162-                               <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?>
163+                               <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?>
164 <?php elseif ( is_year() ) : ?>
165-                               <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?>
166+                               <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?>
167 <?php else : ?>
168                                <?php _e( 'Blog Archives', 'twentyten' ); ?>
169 <?php endif; ?>