• Resolved Brett_the_Librarian

    (@brett_the_librarian)


    I’m working on my personal website: brettbonfield.com

    I’m trying to alter the way individual posts are displayed. In inc/template-tags.php I’ve changed line 37 from

    echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.

    to

    echo '<span class="posted-on">' . $posted_on . '</span>'; // WPCS: XSS OK.

    And in template-parts/content-single.php I’ve changed line 12 from

    <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

    to

    <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>

    It seems like I’ve identified the correct files. On my home page, I have simppeli_posted_on only displaying the posted date and not the byline, but on the individual post it displays both the date and the byline, even though I’m trying to suppress the author. And yet, on the individual post I have successfully changed the H1 to H2.

Viewing 16 replies (of 16 total)
  • @brett_the_librarian

    Simple, they use scripts that scans for author IDs. WordPress will see the “author” queries and try to find usernames with those IDs in its database. Naturally, scripts can be used to fire multiple queries.

    In other words… No sense in needlessly worrying about this (as Sami Keijonen suggested). Rather instead focus on practical, usable security.

    One consideration I would suggest is: Excessive, multiple queries can slow down site response. As such, it may be prudent to employ plugins, such as: Wordfence, Login Security Solution, Simple Security Firewall, and so on.

    I hope in some small way this input is helpful.

    (I have not subscribed to this thread, so might not see any replies)

Viewing 16 replies (of 16 total)
  • The topic ‘Modifying simppeli_posted_on’ is closed to new replies.