[wp-trac] [WordPress Trac] #56606: PHP Warning in /wp-includes/blocks/index.php

WordPress Trac noreply at wordpress.org
Tue Sep 20 03:51:25 UTC 2022


#56606: PHP Warning in /wp-includes/blocks/index.php
-------------------------+----------------------
 Reporter:  isrgrajan    |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |     Focuses:
-------------------------+----------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * focuses:  administration, rest-api =>
 * severity:  blocker => normal
 * component:  Revisions => General
 * version:  trunk =>
 * milestone:  Awaiting Review =>
 * keywords:  changes-requested has-patch =>
 * resolution:   => invalid


Comment:

 Hi @isrgrajan and welcome to trac!

 The use of `ABSPATH` and `WPINC` in this file without quotes is intended.
 These values are defined by WordPress elsewhere to indicate where
 WordPress is installed and the path for `wp-includes` respectively.

 I suspect you are seeings messages in your server logs that show these
 values are undefined because either a person or, more likely, a bot is
 accessing the file directly by visiting `example.com/wp-includes/blocks/`.

 These log entries indicate the file is been accessed in an unintended
 manner rather than a bug in WordPress. Unfortunately it's not something
 WordPress can fix, but you may be able to block access to the file on your
 server. If you ask in the [https://wordpress.org/support/ support forums],
 someone may be able to assist you with how to do this.

 I'm going to close this ticket off as `invalid`. In this case, it's trac's
 unfriendly term to indicate it's not something that can be fixed by
 WordPress.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56606#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list