get_the_excerpt()
getting called with null instead of post ID
#9
Labels
Milestone
get_the_excerpt()
getting called with null instead of post ID
#9
When a search results page gets loaded with title and excerpt for each of the results, the debugger throws an error about a deprecated argument. This is caused by
Thing::getDescription()
passingfalse
as the$post_id
, which triggers a call to_deprecated_argument()
insideget_the_excerpt()
. I'm not sure what part is actually generating the post ID for the arg, but I've included the call stack here to see if someone else can help identify where it's happening.Best I can tell, it all starts with
append_to_footer()
, which triesget_the_ID()
but that fails and returnsfalse
. This just keeps getting passed down the line; even future calls to check it fail because they're usingget_the_ID()
which has already decided there isn't one to give.The text was updated successfully, but these errors were encountered: