• I’m having an issue with the Twitter Tools plugin. When I publish a new post, the resulting tweet has the wrong permalink URL.

    First, the setup. I’m running WordPress 3.2.1, setup as a Network. I’m also using the WordPress MU Domain Mapping plugin (0.5.4.1) to map each blog to its own domain. This particular blog is minorthoughts.desertflood.com, mapped to minorthoughts.com.

    When I directly publish a new post, the Twitter Tools plugin tweets out the title and permalink, but it does it with the incorrect minorthoughts.desertflood.com domain. When I schedule a post, it gets tweeted out at the scheduled time, with the correct minorthoughts.com link.

    I think the problem is related to the interaction of the publish_post action and get_permalink. The plugin calls get_permalink from inside of a publish_post action. It seems like it should work and everything but the domain is correct. I just can’t figure out what the exact problem is though and I’m not sure how to diagnose it further.

Viewing 1 replies (of 1 total)
  • Thread Starter jmartindf

    (@jmartindf)

    I’m now focusing my suspicions on the pre_option_home filter. The WordPress MU Domain Mapping plugin uses that to modify the domain name that’s returned from the get_home API. Is it possible that WordPress isn’t running the filter while posts are being published? (But does when scheduled posts get published?)

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong Domain in Permalink, Generated from publish_post’ is closed to new replies.