You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
learn.jquery.com: Fix PHP warning when empty search results
Previously, the sidebar logic was trying to mark pages as active
based on the last result, because that's what the $post variable
will be set to from the main loop (have_posts/the_post) in e.g.
the search.php or other theme file.
Weird as that might be, where it goes wrong is when there is no
$post variable, e.g. on a 404, empty category, or empty search
results page.
Fixesjquery/infrastructure-puppet#31.
0 commit comments