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

Warning: Undefined array key #71

Open
salcode opened this issue Aug 30, 2024 · 0 comments
Open

Warning: Undefined array key #71

salcode opened this issue Aug 30, 2024 · 0 comments

Comments

@salcode
Copy link
Owner

salcode commented Aug 30, 2024

I'm seeing both of these warnings

Warning: Undefined array key "entry-header" in /Users/sal/localwp/salferrarellotest/app/public/wp-content/themes/bootstrap4-genesis/includes/css-classes.php on line 74

Warning: Undefined array key "entry-content" in /Users/sal/localwp/salferrarellotest/app/public/wp-content/themes/bootstrap4-genesis/includes/css-classes.php on line 74

image

salcode added a commit that referenced this issue Aug 30, 2024
The problem was the string concatenation (.) was being applied before
the null coalescing operator.

By adding paranthesis we ensure the null coalescing operator is applied
when $css_mapping[ $context ] is null, which prevents this warning.

Warning: Undefined array key "entry-header" in
/bootstrap4-genesis/includes/css-classes.php on line 74

Warning: Undefined array key "entry-content" in
/bootstrap4-genesis/includes/css-classes.php on line 74

Resolves #71
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

No branches or pull requests

1 participant