Make WordPress Core

Ticket #53359: 53359-6-CS-indentation-fix.patch

File 53359-6-CS-indentation-fix.patch, 2.3 KB (added by jrf, 23 months ago)
  • src/wp-content/themes/twentythirteen/image.php

    From 28d59fd530cfdbc21242eaea96bf9fb3d9fe32eb Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 15:33:14 +0200
    Subject: [PATCH] CS: indentation fix
    
    ---
     .../themes/twentythirteen/image.php           | 40 +++++++++----------
     1 file changed, 20 insertions(+), 20 deletions(-)
    
    diff --git a/src/wp-content/themes/twentythirteen/image.php b/src/wp-content/themes/twentythirteen/image.php
    index 4332ee3ab5..a6251f8334 100644
    a b get_header(); ?> 
    3434                                                $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
    3535                                        }
    3636
    37                                                 printf(
    38                                                         $published_text,
    39                                                         esc_attr( get_the_date( 'c' ) ),
    40                                                         esc_html( get_the_date() ),
    41                                                         esc_url( get_permalink( $post->post_parent ) ),
    42                                                         esc_attr( strip_tags( $post_title ) ),
    43                                                         $post_title
    44                                                 );
    45 
    46                                                 $metadata = wp_get_attachment_metadata();
    47                                                 printf(
    48                                                         '<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>',
    49                                                         esc_url( wp_get_attachment_url() ),
    50                                                         esc_attr__( 'Link to full-size image', 'twentythirteen' ),
    51                                                         __( 'Full resolution', 'twentythirteen' ),
    52                                                         $metadata['width'],
    53                                                         $metadata['height']
    54                                                 );
    55 
    56                                                 edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' );
     37                                        printf(
     38                                                $published_text,
     39                                                esc_attr( get_the_date( 'c' ) ),
     40                                                esc_html( get_the_date() ),
     41                                                esc_url( get_permalink( $post->post_parent ) ),
     42                                                esc_attr( strip_tags( $post_title ) ),
     43                                                $post_title
     44                                        );
     45
     46                                        $metadata = wp_get_attachment_metadata();
     47                                        printf(
     48                                                '<span class="attachment-meta full-size-link"><a href="%1$s" title="%2$s">%3$s (%4$s &times; %5$s)</a></span>',
     49                                                esc_url( wp_get_attachment_url() ),
     50                                                esc_attr__( 'Link to full-size image', 'twentythirteen' ),
     51                                                __( 'Full resolution', 'twentythirteen' ),
     52                                                $metadata['width'],
     53                                                $metadata['height']
     54                                        );
     55
     56                                        edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' );
    5757                                        ?>
    5858                                        </div><!-- .entry-meta -->
    5959                                </header><!-- .entry-header -->