Make WordPress Core

Opened 5 weeks ago

Last modified 3 weeks ago

#61214 assigned defect (bug)

Hello Dolly : Uncaught exception 'Error' with message 'Call to undefined function add_action()

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

Description

error.message LIKE 'Uncaught exception 'Error' with message 'Call to undefined function add_action()' in /var/www/wp-content/plugins/hello.php:69%' AND error.class = 'Error' AND transactionUiName = '/wp-content/plugins/hello.php'

'request_uri': '/wp-content/plugins/hello.php'

Change History (3)

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


5 weeks ago
#1

  • Keywords has-patch added

#2 @SergeyBiryukov
3 weeks 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, #61277, #61286.

#3 @deepakrohilla
3 weeks ago

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

could you confirm that I'm not missing something with this change.

Note: See TracTickets for help on using tickets.