Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function login_footer_revalidate_customizations() {
}

?>

<style>
.login-action-revalidate_2fa {
background: white;
Expand Down Expand Up @@ -133,6 +134,7 @@ function login_footer_revalidate_customizations() {
padding: 0;
}
</style>

<script>
(function() {
const loginFormExists = !! document.querySelector( '#loginform' );
Expand All @@ -144,6 +146,7 @@ function login_footer_revalidate_customizations() {
}
})();
</script>

<?php
}

Expand All @@ -155,7 +158,10 @@ function login_footer_revalidate_customizations() {
* @todo this may not be necessary once https://github.com/WordPress/gutenberg/issues/54491 is resolved.
*/
function maybe_dequeue_stylesheet() {
if ( ! function_exists( 'bbp_get_displayed_user_id' ) || bbp_get_displayed_user_id() ) {
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.

❤️

return;
}

Expand Down