Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import deps in load-styles & wp-settings instead of script-loader #1325

Closed
wants to merge 1 commit into from
Closed

Import deps in load-styles & wp-settings instead of script-loader #1325

wants to merge 1 commit into from

Conversation

oandregal
Copy link
Member

Fixes https://core.trac.wordpress.org/ticket/53175#comment:34
Alternative to #1324

Steps to reproduce:

  • Use a WordPress environment with PHP 8.
  • Activate the debug logs.
  • Set error_reporting( -1 ); at the head of load-styles.php.
  • Visit /wp-admin/load-styles.php?load=wp-components

The expected result is that the styles load and that there's no message in the log.

Previous to this change, the styles won't load and you'll see this error in the log Fatal error: Uncaught Error: Undefined constant "WP_CONTENT_DIR".

@SergeyBiryukov
Copy link
Member

Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/51056.

@oandregal oandregal deleted the fix/imports-for-load-styles branch June 2, 2021 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants