[wp-trac] [WordPress Trac] #60237: Fatal error when someone opens "/wp-includes/blocks" or "/wp-includes/blocks/index.php" directly
WordPress Trac
noreply at wordpress.org
Tue Jan 16 05:22:49 UTC 2024
#60237: Fatal error when someone opens "/wp-includes/blocks" or "/wp-
includes/blocks/index.php" directly
--------------------------+----------------------
Reporter: akrocks | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Editor | Version: 5.5
Severity: normal | Resolution: invalid
Keywords: has-patch | Focuses:
--------------------------+----------------------
Changes (by sakibmd):
* status: new => closed
* resolution: => invalid
Comment:
I have tested @akrocks PR and it works correctly. I have also introduced
an additional solution.
I used the {{{WPINC}}} constant. By using {{{WPINC}}}, it works perfectly
to prevent direct access.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60237#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list