Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/wp-includes/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,8 @@ function wp_doing_cron() {
*
* @param mixed $thing The variable to check.
* @return bool Whether the variable is an instance of WP_Error.
*
* @phpstan-assert-if-true WP_Error $thing
*/
function is_wp_error( $thing ) {
$is_wp_error = ( $thing instanceof WP_Error );
Expand Down
Loading