Found a missing underscore right before values['image']:
//Fallback to use image_src if ogp::image isn't set.
if (!isset($page->values['image'])) {
$domxpath = new DOMXPath($doc);
$elements = $domxpath->query("//link[@rel='image_src']");
This means the fallback isn't being used. Possibly better that way, anyway.
Edit: Not sure what the problem really is here.... I seem to have this code that works fine from a desktop but never works from my phone. Have cleared buffers, etc. Weird.
Found a missing underscore right before values['image']:
This means the fallback isn't being used. Possibly better that way, anyway.
Edit: Not sure what the problem really is here.... I seem to have this code that works fine from a desktop but never works from my phone. Have cleared buffers, etc. Weird.