WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Publicize Bug (4 posts)

  1. NoMad1337
    Member
    Posted 1 year ago #

    When publicizing new Posts via the JetPack Publicize feature (e.g. on twitter), but not using wp.me shortlinks, JetPack prefers the "raw" guid-parameter link (?p=1234) over the permalink (e.g. /2013/04/perma-link-to-post.html).

    I don't think this is "expected behaviour" - Yes, the guid-parameter version is shorter, but that doesn't matter... On Twitter, there is a character limit, but hyperlinks are always 25chars long (I guess), as they shortlink the URL via t.co anyways.
    The Result: Not using wp.me, publicize uses the guid-link. On Twitter, users will access the hyperlink, going from t.co to the guid-link, this one redirecting to the permalink (if enabled).

    Or in a nutshell: ugly and inefficient.

    I wasn't able to actually determine the function causing this in jetpack's sources, so I don't know if it's jetpack doing this, some wordpress core-function or the wordpress.com publishing-service application.
    Any idea where this comes from, or better: how to change it?

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Jetpack does indeed use shortlinks; you could change that behaviour with a function like the one I described here:
    http://wordpress.org/support/topic/publicize-full-url-to-twitter?replies=3#post-4031818

  3. NoMad1337
    Member
    Posted 1 year ago #

    Thanks a lot!
    I looked for a solution like this 3-4 Weeks ago, but didn't find anything that would solve this. I even looked in the Plugin API reference to see if there is a hook to intercept. Still, I can't find get_shortlink there...
    The wp_get_shortlink wiki/codex page also has no information about this filter.

    But anyways, thanks for the code. I made a small plugin out of this. Not listed at wordpress.org yet, but downloadable on my blog: http://www.tacticalcode.de/2013/04/jetpack-permalink-anstatt-shortlink-fur-publicize.html
    (I heared there are some non-german-speaking people on the interwebs, so... Use google translate. Very very horrible translation, though: http://translate.google.com/translate?sl=de&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.tacticalcode.de%2F2013%2F04%2Fjetpack-permalink-anstatt-shortlink-fur-publicize.html&act=url )

  4. WindowsPhoneCorner
    Member
    Posted 1 year ago #

    Thank you very much for this plugin ! It works perfectly (for now ;) )!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic