Make WordPress Core

Ticket #60237: 60237.2.diff

File 60237.2.diff, 445 bytes (added by sakibmd, 2 years ago)

Here I used the 'WPINC' constant to protect direct access.

  • src/wp-includes/blocks/index.php

    diff --git a/src/wp-includes/blocks/index.php b/src/wp-includes/blocks/index.php
    index e372a74a48..0ec8280b14 100644
    a b  
    55 * @package WordPress
    66 */
    77
     8
     9if (!defined('WPINC')) {
     10    die('Direct access to this file is prohibited.');
     11}
     12
    813define( 'BLOCKS_PATH', ABSPATH . WPINC . '/blocks/' );
    914
    1015// Include files required for core blocks registration.