WordPress.org

Forums

OGraphr for WordPress
Alcohol flag always on (3 posts)

  1. Frederick Ding
    Member
    Posted 2 years ago #

    Recent changes may have changed behaviour of the restrict_content flag:

    if(isset($content)){
    $opengraph_meta['og:restrictions:content'] = 'alcohol';
    }

    does not function as expected -- the metabox on the post screen apparently saves an empty meta key for restrict_content when the alcohol box is unchecked, but this logic only checks for isset().

    if(!empty($content)) {

    might be more appropriate.

    http://wordpress.org/plugins/meta-ographr/

  2. Frederick Ding
    Member
    Posted 2 years ago #

    It looks like user agent detection is hard-coded for Facebook-specific tags; this fails spectacularly due to caching.

  3. idleberg
    Member
    Plugin Author

    Posted 2 years ago #

    i look into changing the logic, but did you have any problems with that setting? it still works for me and from what i remember the wordpress debug mode complains when not using isset()

    not sure what your second post is supposed to mean, can you please specify?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OGraphr for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags