Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script Loader: Check if
error_reporting()
exists in `load-(scripts|…
…styles).php`. This avoids a fatal error on PHP 8 if `error_reporting()` is disabled in `php.ini`. On systems with this function disabled, it's best to add a dummy function to the `wp-config.php` file, as there are multiple other calls in core or plugins. However, as this call to the function is run prior to `wp-config.php` loading, it is now wrapped in a `function_exists()` check. Follow-up to [50447]. Props gansbrest, sabernhardt, jrf, martin.krcho, SergeyBiryukov. Fixes #61873. git-svn-id: https://develop.svn.wordpress.org/trunk@58905 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information