[Plugin: SoundCloud Is Gold] Icon link to wrong url when it is outside wp-admin
-
Hi,
On my page I make possible to write posts or upload media for users, outside the wp-admin, on seperated page called content-upload. And there is a problem, when I click on icon to insert SoundCloud Player, it path to wrong url:
//domain.com/content-upload/media-upload.php?post_id=’.$post_ID.’&tab=soundcloud_is_gold&selectFormat=tracks&paged=1&TB_iframe=1&width=640&height=584
When in dashboard it looks good:
//domain.com/wp-admin/media-upload.php?post_id=’.$post_ID.’&tab=soundcloud_is_gold&selectFormat=tracks&paged=1&TB_iframe=1&width=640&height=584
… and becouse of that, outside the dashboard, in Thick Box I see 404 page.
FIX
In file soundcloud-is-gold-functions.php is variable $plugin_media_button … and it may be fix like code below:
$fixed_url = admin_url('media-upload.php?post_id='.$post_ID.'&tab=soundcloud_is_gold&selectFormat=tracks&paged=1&TB_iframe=1&width=640&height=584'); $plugin_media_button = ' %s' . '<a id="add_soundcloud_is_gold" title="Insert Soundcloud Player" href="'.$fixed_url.'" class="thickbox"><img alt="Insert Soundcloud Player" src="'.SIG_PLUGIN_DIR.'images/soundcloud-is-gold-icon.png"></a>';
Plugin author – I hope you add this fix in next version of plugin, becouse adding posts outside the dashboard is becoming more common.
- The topic ‘[Plugin: SoundCloud Is Gold] Icon link to wrong url when it is outside wp-admin’ is closed to new replies.