Skip to content

Dequeue CSS based on URL to avoid false negatives #262

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

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Oct 10, 2023

Using bbp_get_displayed_user_id() would still load it on some sites and pages where it's not necessary.

See #255 (comment)

Using `bbp_get_displayed_user_id()` would still load it on some sites and pages where it's not necessary.
@iandunn iandunn added this to the Iteration 1 milestone Oct 10, 2023
@iandunn iandunn self-assigned this Oct 10, 2023
@iandunn iandunn marked this pull request as ready for review October 10, 2023 14:58
@iandunn iandunn merged commit 73e8bb8 into trunk Oct 10, 2023
@iandunn iandunn deleted the css-dequeue-on-url branch October 10, 2023 14:58
global $wp;

// Match the URL since page/blog IDs etc aren't consistent across environments.
if ( 1 === preg_match( '#/users/.*/edit/account/#', $wp->request ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

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