WordPress.org

Ready to get started?Download WordPress

Forums

OGraphr
Alcohol flag always on (3 posts)

  1. Frederick Ding
    Member
    Posted 11 months 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 11 months 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 11 months 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?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags