Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Sader

    (@dsader)

    When renaming your domain with whatever plugin you are using, the WordPress hook update_blog_public is fired.

    This plugin ties into that hook to send SuperAdmin a notice that something happened to Visibility settings – even if nothing happened it appears.

    If that hook/email process is of no use to you, look for line in the plugin with the update_blog_public add_action and comment it out with a couple of backticks //

    I do not use a plugin to manage domain renaming, so I can’t really reproduce the behaviour you see.

    Thread Starter Charles Fulton

    (@mackensen)

    I apologize for being unclear. The renaming isn’t done with a plugin but in the Network Admin. On the site editing page (wp-admin/network/site-info.php) it’s possible to change the domain. These notifications are useful and don’t want to disable them, but I’m concerned that in the rename scenario I’m getting a notification that is both redundant (in terms of visibility) and incorrect (in the name of the affected blog).

    Plugin Author David Sader

    (@dsader)

    I smell what you are stepping in now. I never noticed it was messed as I rarely change settings for reading in the network admin – and never edit domains. But I do see now the problem.

    The $current_blog and $blogname globals work only if you are on that dashboard of the blog settings you are changing – the way the average admin changes settings.

    So, to simplify, I’ll have the mail message cite the site_url rather than blogname and not bother with passing the old value before updating to the new.

    Message is now more appropriate for the current state of the setting.
    Site (16), https://sub.domain/, changed reading visibility setting to Visible(1)

    Thread Starter Charles Fulton

    (@mackensen)

    Looks good; thanks for the quick resolution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Misleading notification when renaming a domain’ is closed to new replies.