WordPress.org

Make WordPress Core

Ticket #48633: 48633.diff

File 48633.diff, 1.5 KB (added by chintan1896, 2 years ago)
  • wp-content/themes/twentytwenty/inc/template-tags.php

    diff --git a/wp-content/themes/twentytwenty/inc/template-tags.php b/wp-content/themes/twentytwenty/inc/template-tags.php
    index d220875..979c39e 100644
    a b function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) 
    248248        }
    249249
    250250        $post_meta_wrapper_classes = '';
    251         $post_meta_classes         = '';
    252251
    253252        // Get the post meta settings for the location specified.
    254253        if ( 'single-top' === $location ) {
    function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) 
    316315
    317316                <div class="post-meta-wrapper<?php echo esc_attr( $post_meta_wrapper_classes ); ?>">
    318317
    319                         <ul class="post-meta<?php echo esc_attr( $post_meta_classes ); ?>">
     318                        <ul class="post-meta">
    320319
    321320                                <?php
    322321
  • wp-content/themes/twentytwenty/template-parts/entry-header.php

    diff --git a/wp-content/themes/twentytwenty/template-parts/entry-header.php b/wp-content/themes/twentytwenty/template-parts/entry-header.php
    index 1f68550..57aac3b 100644
    a b if ( is_singular() ) { 
    1515
    1616?>
    1717
    18 <header class="entry-header has-text-align-center<?php echo esc_attr( $entry_header_classes ); ?>">
     18<header class="entry-header has-text-align-center<?php echo $entry_header_classes; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
    1919
    2020        <div class="entry-header-inner section-inner medium">
    2121