Opened 2 years ago
Closed 2 years ago
#62108 closed defect (bug) (fixed)
Add direct access check to /wp-includes/blocks/index.php
| Reported by: | peterwilsoncc | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.7 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Related to #60352.
As servers are typically set to use index.php as a default when directories are accessed, the use of the file in /wp-includes/blocks/ can result in filling the logs files with noise due to fatal errors as search engines test the URL for validity.
As a temporary fix for this, I suggest adding an ABSPATH check to the file and dying gracefully to prevent noise.
There is a pull request linked to the earlier ticket that can be used as a starting point.
Change History (5)
This ticket was mentioned in PR #7437 on WordPress/wordpress-develop by @deepakrohilla.
2 years ago
#2
- Keywords has-patch added
@mukesh27 commented on PR #7437:
2 years ago
#4
As mention in ticket description there is already a PR https://github.com/WordPress/wordpress-develop/pull/6635
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
https://core.trac.wordpress.org/ticket/62108