Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#63783 new defect (bug)

Fix: uncaught exception error from wp-includes folder files

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

Description

Stop direct loading of files in /wp-includes that should only be included.

This Changeset restricts direct access call in /wp-includes and its subdirectories.

Uncaught exception 'Error' with message 'Class "ParagonIE_Sodium_Core32_Util" not found' in /var/www/wp-includes/sodium_compat/src/Core32/Poly1305.php:10

Uncaught exception 'Error' with message 'Class "ParagonIE_Sodium_Core_AES_KeySchedule" not found' in /var/www/wp-includes/sodium_compat/src/Core/AES/Expanded.php:10

Uncaught exception 'Error' with message 'Class "ParagonIE_Sodium_Core_XChaCha20" not found' in /var/www/wp-includes/sodium_compat/namespaced/Core/XChaCha20.php:4

Uncaught exception 'Error' with message 'Class "WP_Block_Supports" not found' in /var/www/wp-includes/block-supports/aria-label.php:64

Uncaught exception 'Error' with message 'Class "WP_Dependencies" not found' in /var/www/wp-includes/class-wp-scripts.php:18

Uncaught exception 'Error' with message 'Class "WP_REST_Controller" not found' in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php:17

Uncaught exception 'Error' with message 'Class "WpOrg\Requests\Exception" not found' in /var/www/wp-includes/Requests/src/Exception/ArgumentCount.php:20

Uncaught exception 'Error' with message 'Interface "SimplePie\Cache\DataCache" not found' in /var/www/wp-includes/SimplePie/src/Cache/BaseDataCache.php:56

Uncaught exception 'Error' with message 'Interface "WpOrg\Requests\Transport" not found' in /var/www/wp-includes/Requests/src/Transport/Curl.php:25

https://github.com/WordPress/wordpress-develop/pull/9378

Change History (1)

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


6 months ago
#1

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.