Skip to content

Commit

Permalink
fix: adds conditonal check for ABSPATH constant in wp-includes/blocks…
Browse files Browse the repository at this point in the history
…/index.php file
  • Loading branch information
Pathan-Amaankhan committed Jan 12, 2024
1 parent efc2d9e commit b326aa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wp-includes/blocks/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* @package WordPress
*/

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}

define( 'BLOCKS_PATH', ABSPATH . WPINC . '/blocks/' );

// Include files required for core blocks registration.
Expand Down

0 comments on commit b326aa5

Please sign in to comment.