WordPress.org

Make WordPress Core

Ticket #45555: 45555.diff

File 45555.diff, 659 bytes (added by pratikkry, 3 years ago)

i tried something cool

  • inc/template-tags.php

     
    7676                // Hide author, post date, category and tag text for pages.
    7777                if ( 'post' === get_post_type() ) {
    7878
     79                        // Hide author and post date from single view.
     80                        if ( ! is_singular() ) {
     81
    7982                        // Posted by
    8083                        twentynineteen_posted_by();
    8184
    8285                        // Posted on
    8386                        twentynineteen_posted_on();
     87                }
    8488
    8589                        /* translators: used between list items, there is a space after the comma. */
    8690                        $categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) );