dshanske / bridgy-publish

Bridgy for WordPress ( Functionality now in Syndication Links Plugin. This is being deprecated)
https://wordpress.org/plugins/bridgy-publish
8 stars 6 forks source link

bridgy signup callback breaks if wordpress installed at different URL path #46

Closed snarfed closed 6 years ago

snarfed commented 6 years ago

hi! looks like the buttons that send people to bridgy to sign up hard code the wordpress admin URL path as /wp-admin/...:

https://github.com/dshanske/bridgy-publish/blob/master/includes/class-bridgy-config.php#L322

...but many wordpress sites have it at a different path. eg. mine is at /w/wp-admin/... this makes the bridgy signup flow 404 when it gets redirected back to the wordpress site. (originally mentioned back in https://github.com/dshanske/bridgy-publish/issues/37#issuecomment-315799817.)

i think you can fix it by using admin_url() instead of hard-coding /wp-admin/.

asuh commented 6 years ago

Funny you mention this, I found this bug last night and submitted a pull request :smile: