Skip to content
Snippets Groups Projects
Commit b807b666 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

debug: don't crash if an object is NULL in wp_*_object() and point it out in the log

by using G_TYPE_NONE (== 1), we can pass this in the log handler
to point out the fact that we expected something but it's null

As a bonus, a null object always gets printed in red because that's
the first color in object_colors
parent a54ff348
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment