Skip to content

Conversation

@izzygld
Copy link
Owner

@izzygld izzygld commented Mar 30, 2023

ErrorException
Warning: Attempt to read property "post_type" on null

In this updated code, the condition $post checks whether the $post variable is not null before accessing its post_type property. If $post is null, the code immediately returns without attempting to access its properties.

In this updated code, the condition $post checks whether the $post variable is not null before accessing its post_type property. If $post is null, the code immediately returns without attempting to access its properties.
@izzygld izzygld merged commit 32f32c5 into main Mar 30, 2023
@izzygld izzygld deleted the izzygld-patch-1 branch March 30, 2023 07:05
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

Successfully merging this pull request may close these issues.

2 participants