Skip to content

Commit

Permalink
Check if function exists to avoid fatal error
Browse files Browse the repository at this point in the history
Introduced in e21a86a
  • Loading branch information
iandunn committed Sep 19, 2023
1 parent e21a86a commit 3429b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ 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 ( bbp_get_displayed_user_id() ) {
if ( ! function_exists( 'bbp_get_displayed_user_id' ) || bbp_get_displayed_user_id() ) {
return;
}

Expand Down

0 comments on commit 3429b91

Please sign in to comment.