[wp-trac] [WordPress Trac] #53183: Missing code in TwentyTwentyone theme

WordPress Trac noreply at wordpress.org
Tue May 11 15:27:51 UTC 2021


#53183: Missing code in TwentyTwentyone theme
---------------------------+-------------------------------------
 Reporter:  tomjdevisser   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.7.1
 Severity:  normal         |  Resolution:
 Keywords:  dev-feedback   |     Focuses:  docs, coding-standards
---------------------------+-------------------------------------

Comment (by tomjdevisser):

 For added security, I think it would be a nice addition to the theme to
 add the following code to each file in the theme:

 {{{#!php
 <?php
 <?php
 // Make sure no one can call this file directly
 defined( 'ABSPATH' ) or die;
 }}}

 Some more information on using this:
 https://stackoverflow.com/questions/43212340/what-is-meant-by-if-defined-
 abspath
 https://wordpress.stackexchange.com/questions/108418/what-are-the-
 differences-between-wpinc-and-abspath

 PS: This is my first ticket, and I don't know exactly what
 focuses/type/keywords would fit. If anything needs changing, constructive
 feedback is highly appreciated.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53183#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list