Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#61277 assigned defect (bug)

PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH direct access to wp-includes/rss.php on line 19

Reported by: deepakrohilla's profile deepakrohilla Owned by: deepakrohilla's profile deepakrohilla
Milestone: Awaiting Review Priority: normal
Severity: major Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

error.message PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH direct access to wp-includes/rss.php on line 19.
request_uri': '/wp-content/rss.php'

Attachments (1)

Screenshot from 2024-05-23 11-49-47.png (47.4 KB) - added by deepakrohilla 4 months ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in PR #6610 on WordPress/wordpress-develop by @deepakrohilla.


4 months ago
#1

  • Keywords has-patch added

#2 @SergeyBiryukov
4 months ago

Hi there, thanks for the ticket!

A similar issue was addressed in [49619] / #35835 for wp-includes/rss-functions.php.

Unless I'm missing something, calling directly pretty much any other file in wp-includes or wp-admin/includes would lead to the same issue, so if we want to add an early exit, it might be a good idea to do that in a consistent way.

Related: #47154, #51806, #55944, #61214, #61286.

#3 @deepakrohilla
4 months ago

@SergeyBiryukov I have cover maximum number of files of wp-includes directory and raised in https://core.trac.wordpress.org/ticket/61314#ticket with patch

Note: See TracTickets for help on using tickets.