WordPress.org

Make WordPress Core

Ticket #21722: 21722.2.diff

File 21722.2.diff, 4.1 KB (added by obenland, 2 years ago)

Refresh

  • wp-content/themes/twentytwelve/content-image.php

     
    1515 
    1616                <footer class="entry-meta"> 
    1717                        <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 
    18                         <h2><?php echo get_the_date(); ?></h2> 
     18                        <h2><?php echo get_the_date(); edit_post_link( __( 'Edit', 'twentytwelve' ), ', <span class="edit-link">', '</span>' ); ?></h2> 
    1919                </footer><!-- .entry-meta --> 
    2020        </article><!-- #post --> 
  • wp-content/themes/twentytwelve/content-link.php

     
    1515                </div><!-- .entry-content --> 
    1616 
    1717                <footer class="entry-meta"> 
    18                         <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 
    19                         <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> 
     18                        <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a><?php 
     19                        edit_post_link( __( 'Edit', 'twentytwelve' ), ', <span class="edit-link">', '</span>' ); ?> 
    2020                </footer><!-- .entry-meta --> 
    2121        </article><!-- #post --> 
  • wp-content/themes/twentytwelve/style.css

     
    880880        line-height: 1.846153846; 
    881881        color: #777; 
    882882} 
    883 footer .edit-link { 
    884         margin: 24px 0; 
    885         margin: 1.714285714rem 0; 
    886 } 
    887883 
    888884 
    889885/* =Archives 
  • wp-content/themes/twentytwelve/content-aside.php

     
    1717        </div><!-- .aside --> 
    1818 
    1919        <footer class="entry-meta"> 
    20                 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 
    21                 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> 
     20                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a><?php 
     21                edit_post_link( __( 'Edit', 'twentytwelve' ), ', <span class="edit-link">', '</span>' ); ?> 
    2222        </footer><!-- .entry-meta --> 
    2323</article><!-- #post --> 
  • wp-content/themes/twentytwelve/content-quote.php

     
    1414        </div><!-- .entry-content --> 
    1515 
    1616        <footer class="entry-meta"> 
    17                 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 
    18                 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> 
     17                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a><?php 
     18                edit_post_link( __( 'Edit', 'twentytwelve' ), ', <span class="edit-link">', '</span>' ); ?> 
    1919        </footer><!-- .entry-meta --> 
    2020</article><!-- #post -->