Skip to content

Commit

Permalink
Auto-sizes: Disallow direct file access
Browse files Browse the repository at this point in the history
  • Loading branch information
joemcgill committed Jan 17, 2024
1 parent bd625e8 commit 35e5fbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/images/auto-sizes/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
* @since n.e.x.t
*/

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}

// Define the constant.
if ( defined( 'IMAGE_AUTO_SIZES_VERSION' ) ) {
return;
Expand Down

0 comments on commit 35e5fbf

Please sign in to comment.