Phil Cable

Results 3 issues of Phil Cable

For 5.x upgrade preparation: * Fix unprepared SQL queries * Consolidate SQL query code to avoid false positives for unprepared statement * Replace local `wp_redirect()` calls with `wp_safe_redirect()` * Update...

* Check if `$this->posts` is truthy before passing to `count()`. (The `bu_navigation_get_posts()` function is used to define `$this->posts` here, and will return `false` if it doesn't find any results.)

https://trello.com/c/eU9qfTAa/30-ca-6-bu-navigation This approach leverages keys stored in a new cache group - `bu-navigation-persistent` - as `bu-navigation` is set as [non-persistent](https://github.com/bu-ist/bu-navigation/blob/master/bu-navigation.php#L86). A copy of the `last_changed` cache key value from WP...