Variable $featured_video_url does not exist
-
In Thing.php, $featured_video_url initialized within a conditional. However, it is accessed outside of that conditional.
Updating /lib/HunchSchema/Thing.php
to return if the get_the_post_video_url function doesn’t exist seems to do the trickif ( function_exists( ‘get_the_post_video_url’ ) ) {
$featured_video_url = get_the_post_video_url();
}
else {
return;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Variable $featured_video_url does not exist’ is closed to new replies.