WordPress.org

Ready to get started?Download WordPress

Forums

OGraphr
Alcohol flag always on (3 posts)

  1. Frederick Ding
    Member
    Posted 1 year 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 1 year 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 1 year 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

About this Topic

Tags