• Sending the admin emails throws “PHP Notice: Undefined variable: blogname in /path/to/wp-content/plugins/more-privacy-options/ds_wp3_private_blog.php on line 183” and “PHP Notice: Undefined variable: blogname in /path/to/wp-content/plugins/more-privacy-options/ds_wp3_private_blog.php on line 184”.

    This can be fixed by adding the line:

    $blogname = get_blog_option( $blog_id,'blogname' );

    prior to line 183 in ds_mail_super_admin().

    Additionally, it would be nice if there were:

    • a space before the parentheses containing the blog ID in the email subject and message
    • a space before the parentheses containing the visibility setting
    • quotation marks around the blogname and visibility setting
    • some indication that the IDs are IDs

    so that the subject and message read as follows:

    Site “Site Name” (ID: 2), http://my.domain/sitepath, changed reading visibility setting to “Visible” (ID: 1)

    You could also namecheck your plugin in the email message so it’s obvious what the source of the email is. An extra line in $message to say “Sent by More Privacy Options” would be helpful.

    Thanks for the plugin David.

    https://wordpress.org/plugins/more-privacy-options/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blogname not appearing in admin email subject line’ is closed to new replies.