We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As an admin, I do not want any notice related to Give core.
In few cases, if somehow post_type will not set in WordPress global query then we will get PHP notice. https://github.com/impress-org/give/blob/b6b83dd7bab9e8066d9399bb40186dc642d8a817/includes/admin/forms/dashboard-columns.php#L468
post_type
The plugin must load without any notice.
Use empty to check whether this param exist or not
empty
https://wordpress.org/support/topic/error-cannot-modify-header-information-14/ https://wordpress.org/support/topic/php-notice-undefined-index-post_type/
The text was updated successfully, but these errors were encountered:
fe69c34
fix: prevent PHP notice
6fae187
When `post_type` does not exist in query_vars fixes #3981
ravinderk
No branches or pull requests
Bug Report
User Story
As an admin, I do not want any notice related to Give core.
Current Behavior
In few cases, if somehow
post_type
will not set in WordPress global query then we will get PHP notice.https://github.com/impress-org/give/blob/b6b83dd7bab9e8066d9399bb40186dc642d8a817/includes/admin/forms/dashboard-columns.php#L468
Expected Behavior
The plugin must load without any notice.
Bug Type
Possible Solution
Use
empty
to check whether this param exist or notRelated
https://wordpress.org/support/topic/error-cannot-modify-header-information-14/
https://wordpress.org/support/topic/php-notice-undefined-index-post_type/
Acceptance Criteria
post_type
does not set.The text was updated successfully, but these errors were encountered: