Mr Papa said
you are not reading that code correctly…. the is_admin() check at beginning ONLY does it on admin pages…the problem is home_url(), site_url() and get_permalink() from wp all report https…
So to confirm this only happens on the admin pages but when I click on ‘Update Permalink’ under integration I am on an admin page. Therefore will it not capture SFHOMEURL as https: and input it into the permalink?
Would that not explain why when the plugin is activated it looks to site_url and sets it to http but when I click the button in the integration page because I am in an admin page over SSL it captures SFHOMEURL as https?
I tried to test this by adding
$permhome = trailingslashit(home_url());
define (‘SFPERMURL’, $permhome);
to sp-control.php so that I could get the home_url without it being manipulated to https to see if was causing the issue
and then changed in spa-integration-page-form.php line below to include SFPERMURL instead of SFHOMEURL
function spa_paint_update_permalink() {
$site = SFPERMURL.’index.php?sp_ahah=integration-perm&sfnonce=’.wp_create_nonce(‘forum-ahah’).’&item=upperm’;
$target = ‘adminupresult’;
$gif = SFCOMMONIMAGES.’working.gif’;
echo ‘<input type=”button” class=”button button-highlighted” value=”‘.spa_text(‘Update Forum Permalink’).'” onclick=”spjAdminTool(”.$site.”, ”.$target.”, ”.$gif.”);” />’;
}
But this just hangs because of insecure content being loaded (as screenshot) being blocked.
just to rule this out, are any of your test sites able to get an http permalink when in the admin screen under https?



