Skip to content

Commit

Permalink
fix missing OpenGraph metadata
Browse files Browse the repository at this point in the history
fixes #498
  • Loading branch information
eteubert committed Sep 3, 2014
1 parent 5aad839 commit caa4bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/modules/open_graph/open_graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public function register_hooks() {

public function the_open_graph_metadata()
{
$cache_key = 'opg' . get_the_ID() . get_permalink();
$cache_key = 'opgv2' . get_the_ID() . get_permalink();

$cache = \Podlove\Cache\TemplateCache::get_instance();
return $cache->cache_for($cache_key, function() {
return \Podlove\Modules\OpenGraph\Open_Graph::get_open_graph_metadata();
echo $cache->cache_for($cache_key, function() {
return (string) \Podlove\Modules\OpenGraph\Open_Graph::get_open_graph_metadata();
});
}

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Find the setting Flattr > Advanced Settings > Flattrable content > Post Types an
* Podlove Dashboard supports screen options
* fix contribution counting in contributor table (you may have to hit the "repair" button in `Podlove > Support` if you still see wrong numbers)
* fix tracking data export
* fix missing OpenGraph metadata
* improved redirects: added sortability and individual entries can be deactivated without being deleted
* `contributor.id` is accessible via template API now

Expand Down

0 comments on commit caa4bce

Please sign in to comment.