Ticket #24542: 24542.diff
| File 24542.diff, 2.6 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentythirteen/image.php
20 20 <div class="entry-meta"> 21 21 <?php 22 22 $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' ); 23 $post_title = get_the_title( $post->post_parent );23 $post_title = get_the_title( $post->post_parent ); 24 24 if ( empty( $post_title ) || 0 == $post->post_parent ) 25 25 $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>'; 26 26 … … 32 32 $post_title 33 33 ); 34 34 35 $metadata = wp_get_attachment_metadata(); 36 printf( '<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s × %5$s)</a></span>', 37 esc_url( wp_get_attachment_url() ), 38 esc_attr__( 'Link to full-size image', 'twentythirteen' ), 39 __( 'Full resolution', 'twentythirteen' ), 40 $metadata['width'], 41 $metadata['height'] 42 ); 35 if ( ! post_password_required( $post->post_parent ) ) : 36 $metadata = wp_get_attachment_metadata(); 37 printf( '<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s × %5$s)</a></span>', 38 esc_url( wp_get_attachment_url() ), 39 esc_attr__( 'Link to full-size image', 'twentythirteen' ), 40 __( 'Full resolution', 'twentythirteen' ), 41 $metadata['width'], 42 $metadata['height'] 43 ); 44 endif; 43 45 44 46 edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); 45 47 ?> -
wp-content/themes/twentythirteen/functions.php
433 433 */ 434 434 function twentythirteen_the_attached_image() { 435 435 $post = get_post(); 436 437 // If post parent is password protected, show the form and bail. 438 if ( post_password_required( $post->post_parent ) ) { 439 echo get_the_password_form( $post->post_parent ); 440 return; 441 } 442 436 443 $attachment_size = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) ); 437 444 $next_attachment_url = wp_get_attachment_url(); 438 445
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)