Request to require ABSPATH check in WordPress theme files
-
I would like to suggest that WordPress theme authors include a security check at the very top of their index.php and other PHP files. This prevents direct access to theme files outside of the WordPress environment.
<?php
if ( ! defined( ‘ABSPATH’ ) ) {
exit;
}
This small addition helps protect users by ensuring files only run when WordPress is loaded.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.
