Support » Plugin: JM Twitter Cards » Wrong URL parsed into twitter:domain

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tweetpressfr


    get_bloginfo(‘wpurl’) returns the “WordPress address (URL)” set in Settings > General. This data is retrieved from the “siteurl” record in the wp_options table.

    This issue is weird but you know bugs happen.
    So to me it would be a better solution to let the original meta remain intact and replace get_bloginfo() with home_url():

    echo '<meta property="twitter:domain" content="' . home_url() . '"/>'."\n";

    Hope this will help. Just tell me 🙂

    Hi, I was also having this issue and making your suggested change on line 267 in jm-twitter-cards.php worked for me, many thanks!

    To anyone else trying this, making the change on line 220 will not fix the issue.

    I’m hoping that this issue can be addressed in an upcoming update so I don’t have to remember to come back and update that line of code.

    Thanks for the fix and the handy plug-in JM!

    Plugin Author tweetpressfr


    Ok cool, this will be updated, probably with get_bloginfo('url')

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong URL parsed into twitter:domain’ is closed to new replies.