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

Fix PHP 8.1 errors caused by missing page titles #462

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

vcanales
Copy link
Member

@vcanales vcanales commented Oct 24, 2023

It achieves the same effect — keeping those submenus from being displayed — while avoiding PHP errors.

Errors shown that need to be fixed:

  • Anywhere on the admin page.
  • On the "Add Google Font" and "Add Local Font" sections.
    Error shown:
    Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-admin/admin-header.php on line 36
    

Closes: #168

Achieves the same effect — keeping those submenus from being displayed —
while avoiding PHP errors.

Closes: #168
@vcanales vcanales added the bug Something isn't working label Oct 24, 2023
@vcanales vcanales marked this pull request as ready for review October 25, 2023 15:41
@vcanales vcanales requested a review from a team October 25, 2023 15:42
@vcanales vcanales changed the title Replace null with empty string on add menu page Fix PHP 8.1 errors caused by missing page titles Oct 25, 2023
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

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

Thanks for working on this 🙇 Changes look good to me!

@vcanales vcanales merged commit c4d1ce7 into trunk Oct 26, 2023
1 check passed
@vcanales vcanales mentioned this pull request Nov 13, 2023
@vcanales vcanales deleted the avoid-null-on-submenu-page-call branch May 23, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP 8.1 errors.
2 participants