debug notice for each menu element when no search results were found
joseluis opened this issue · 4 comments
joseluis commented
This line gets printed before the menu, one time for each link it contains:
Notice: Trying to get property of non-object in /home/.../wp-content/plugins/subtitles/public/class-subtitles.php on line 543
only after searching something that didn't return results.
Tested with multiple themes, including Twenty Fourteen
philiparthurmoore commented
Not good. What do you mean "only after searching something that didn't return results"? Can you tell me how to reproduce this problem? I'll take care of it immediately. Thanks!
joseluis commented
I mean you search something in WP using the search form, and it doesn't find any matches. I'll give you an example URL, I doubt this search term will return any search results:
example.com/?s=dhasdlkjhasd1289uwljkas
See if you can reproduce it in your installation.
philiparthurmoore commented
Very annoying and easily overlooked bug. :) Thank you so much for spotting this.
joseluis commented
You're welcome. Thanks for being awesome.