l2g on "[Plugin: WP to Twitter] convert https to http on tweet"

ساخت وبلاگ

I love your plugin, great job! My question is if it's possible to always post the url using http (even though I'm logged in securely as https).

I use a private self signed key to log into my site, but don't host it publicly as so. But since I'm using a secure connection when I create my post (and press Publish posts this way), your plugin creates the URL link on the tweet with https protocol prefix.

In short: would it be a big deal to enforce an http:// (always) in tweeting url as an option?

Chris

https://wordpress.org/plugins/wp-to-twitter/

No, that wouldn't be a big deal. You could use the filter 'wpt_shorten_link' to prefilter the link (before shortening) that gets sent to Twitter. All you'd need to do is replace 'https' with 'http' using str_replace.

Great!

You can close this ticket (unless you want to make it a feature!) :)

Either way, I'm satisfied and have patched it according to your advice.

Thanks for your speedy reply!

Chris

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 47 تاريخ : جمعه 3 ارديبهشت 1395 ساعت: 8:46