Skip to content

Conversation

@ideag
Copy link

@ideag ideag commented Jun 8, 2023

This PR utilises the fact that $wpdb->get_row() will return a null when no entries were found vs false when it experienced an error. A null result is still cached (site/network does not exist), while a false one (query failed) is not.

Trac ticket: https://core.trac.wordpress.org/ticket/57483


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

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.

1 participant