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

Prevent warnings in cptui_post_thumbnail_theme_support() from false being passed to foreach #980

Open
tw2113 opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@tw2113
Copy link
Member

tw2113 commented Feb 6, 2025

https://wordpress.org/support/topic/array-warning-for-cptui_post_thumbnail_theme_support-php-8-3-14/

Warning: foreach() argument must be of type array|object, false given in /plugins/custom-post-type-ui/inc/utility.php on line 1015

cptui_get_post_type_data(); is filterable thus we should check for an array and return early if needed.

@tw2113 tw2113 added the Code QA label Feb 6, 2025
@tw2113 tw2113 self-assigned this Feb 6, 2025
@tw2113 tw2113 added this to the 1.17.3 milestone Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant