Closed kraftner closed 9 years ago
I don't think the bolded text should be removed, instead it should be replaced to state clearly it does not check for other values. Perhaps:
This is a helpful method to simplify error checking. It checks if a returned value was a WP_Error >object, but does not check for other error values. It's shorthand for
if ( get_class( $variable ) == 'WP_Error' )
Even better.
At http://www.wptherightway.org/en/debugging/handlingerrors.html it says
Looking at the source It seems that there are no other checks than for
WP_Error
.Anything I missed or should this part of the sentence just be removed?