Thank you Andrea... finally I've learned "how" to start a new thread :-)
Maybe this has been discussed before... I've searched the forums, however didn't find anything...
of course compliments for the 2.7 beta...
ok, I have a test installation of wpmu 2.7 (never tested any other versions before) running together with the domain mapping plugin with the following configuration:
main site: http://wpmudomain.net
a test blog is activated on: (1) http://test.wpmudomain.net
now the test blog is domain mapped to (2) http://mappeddomain.net
the test blog is accessible via (1) and (2), so everything works fine so far...
I can also login to the administration panel via both addresses (1) and (2) whereby in both cases I will be redirected to the admin panel on (2) http://mappeddomain.net/wp-admin/ ...
however the "Visit site" link in the admin header always directs to http://test.wpmudomain.net, what's not perfect but would not be that an issue, however the "Log Out" link directs to http://test.wpmudomain.net/wp-login?action=logout&etc... so that logging out from the admmin panel, which is on http://mappeddomain.net/wp-admin/ is not possible and causes the error message:
You are attempting to log out of test
Please try again.
Thank you in advance for any helpful information...
- ds
Playing around I found the following quick fixes which appear to be working although little tested:
In domainmapping.php, I ammended as follows:
function domain_mapping_siteurl( $setting ) {
global $wpdb;
if( is_admin() )
return $setting;
into
function domain_mapping_siteurl( $setting ) {
global $wpdb;
if( is_admin() && $_GET['page'] == 'domainmapping')
return $setting;
and in admin-header.php on line 107 I amended
<?php trailingslashit( get_bloginfo('url') ); ?>
into
<?php echo get_option('home'); ?>
the only issue remaining as far as I currently notice is that the prior misredirection remains for the tools.php?page=domainmapping page in the admin panel which appears to be essential for properly managing the mapped domains...
- ds