Plugin Directory

Changeset 3733990


Ignore:
Timestamp:
10/08/2026 08:12:27 AM (2 weeks ago)
Author:
Virgial
Message:

fix for second multisite not using default options at initial install

Location:
manage-notification-emails
Files:
2 added
5 deleted
5 edited
28 copied

Legend:

Unmodified
Added
Removed
  • manage-notification-emails/tags/1.9.2/core/class.FAMNE.php

    r3727849 r3733990  
    245245                 */
    246246                public static function update_check() {
     247                        /*
     248                         * On a multisite the version is stored network wide, so a site without settings
     249                         * (like a subsite or a newly created site) gets the defaults here.
     250                         */
     251                        if ( false !== self::get_option( 'fa_mne_version' ) && false === self::get_option( 'famne_options' ) ) {
     252                                self::update_option( 'famne_options', self::default_options() );
     253                        }
     254
    247255                        if ( self::get_option( 'fa_mne_version' ) !== FA_MNE_VERSION ) {
    248256                                $options         = self::get_option( 'famne_options' );
  • manage-notification-emails/tags/1.9.2/manage-notification-emails.php

    r3727849 r3733990  
    33 * Plugin Name: Manage Notification E-mails
    44 * Description: This plugin gives you the option to disable some of the notification e-mails send by WordPress. It's a simple plugin but effective.
    5  * Version: 1.9.1
     5 * Version: 1.9.2
    66 * Author: Virgial Berveling
    77 * Author URI: https://www.freeamigos.nl
    … …  
    6464}
    6565
    66 define( 'FA_MNE_VERSION', '1.9.1' );
     66define( 'FA_MNE_VERSION', '1.9.2' );
    6767define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    6868define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( __DIR__ ) );
  • manage-notification-emails/tags/1.9.2/modules/pluggable/pluggable-functions-1.5.php

    r3727768 r3733990  
    33 * Stop sending notification mails to the users.
    44 *
    5  * Version 1.5.4
     5 * Version 1.5.5
     6 * fixed: A site without settings (on multisite every site but the first) uses the default settings instead of disabling all notifications.
     7 * version 1.5.4
    68 * fixed: On multisite the new user notification to admin follows the network registration notification setting.
    79 * version 1.5.3
    … …  
    2325
    2426$famne_options = FAMNE::get_option( 'famne_options' );
     27
     28// Not installed on this site yet: FAMNE::update_check() saves the defaults on plugins_loaded.
     29if ( false === $famne_options ) {
     30        $famne_options = FAMNE::default_options();
     31}
    2532
    2633/*
  • manage-notification-emails/tags/1.9.2/modules/pluggable/pluggable-functions-1.6.php

    r3727768 r3733990  
    33 * Stop sending notification mails to the users.
    44 *
    5  * Version 1.6.2
     5 * Version 1.6.3
     6 * fixed: A site without settings (on multisite every site but the first) uses the default settings instead of disabling all notifications.
     7 * version 1.6.2
    68 * fixed: Disabling the password forgotten e-mail no longer blocks password resets (and the new user e-mail) altogether.
    79 * fixed: On multisite the new user notification to admin follows the network registration notification setting.
    … …  
    1820$famne_options = FAMNE::get_option( 'famne_options' );
    1921
     22// Not installed on this site yet: FAMNE::update_check() saves the defaults on plugins_loaded.
     23if ( false === $famne_options ) {
     24        $famne_options = FAMNE::default_options();
     25}
     26
    2027/*
    2128 * On a multisite where each site manages its own settings, the new user notification
    … …  
    3037        array(
    3138                'name'    => 'Pluggable',
    32                 'version' => '1.6.2',
     39                'version' => '1.6.3',
    3340        )
    3441);
  • manage-notification-emails/tags/1.9.2/readme.txt

    r3727849 r3733990  
    55Donate link: https://paypal.me/virgial/5
    66Tested up to: 7.1
    7 Stable tag: 1.8.6
     7Stable tag: 1.9.2
    88Requires PHP: 7.4
    99License: GPLv2 or later
    … …  
    7373
    7474== Upgrade Notice ==
     75= 1.9.2 =
     76On multisite, sites that never got their own settings had all notifications disabled. They now get the default settings, so these sites send the notification e-mails again.
     77
    7578= 1.9.0 =
    7679Security hardening. Requires WordPress 5.2+. Password resets now always work; disabling the forgotten password e-mail only stops the e-mail. On multisite the new user e-mail to the site admin follows the network registration notification setting.
    7780
    78 = 1.1.0 =
    79 If you're one of the early installers, than you'll be happy to see that de new user notification is now splitted in admin and user e-mail management.
     81== Changelog ==
     82= 1.9.2 =
     83FIXED: On multisite only the first site got the default settings, so on the other sites all notifications were disabled. A site without settings now gets the default settings.
    8084
    81 == Changelog ==
    8285= 1.9.1 =
    8386FIXED: All PHP files now block direct access, as required by Plugin Check.
    … …  
    119122UPDATED: A lot of files are refactored and added some more comments along with it.
    120123
    121 = 1.7.1 =
    122 FIXED: Email automatic plugin update notification to admin sometimes still send out.
    123 
    124 = 1.7.0 =
    125 UPGRADED: Refactored the plugin and added a more suitable modular system for adding new features.
    126 ADDED: Send admin notifications to extra admin e-mail addresses
    127 ADDED: Send an e-mail to administrators after a user requested to update his or her e-mail address
    128 ADDED: Send an e-mail to administrators after a user successfully updated his or her e-mail address
    129 
    130 = 1.6.1 =
    131 FIXED: Email automatic plugin update notification to admin sometimes still send out.
    132 = 1.6.0 =
    133 ADDED: Automatic WordPress plugin, and theme update e-mail options.
    134 
    135 = 1.5.1 =
    136 FIXED: php-notice for missing $deprecated variable.
    137 = 1.5.0 =
    138 UPGRADED: Upgraded the pluggable functions file. Fixing the missing PassWordHash Class bug.
    139 
    140 = 1.4.2 =
    141 FIXED: Loading local language.
    142 
    143 = 1.4.1 =
    144 ADDED: Manage sending e-mail after a successful automatic WordPress core update to administrators. E-mails about failed updates will always be sent to the administrators and will not be disabled.
    145 
    146 
    147 = 1.4.0 =
    148 ADDED: Multi-language support
    149 
    150 = 1.3.0 =
    151 ADDED: passing through the $notify variable, available sinds 4.6. This is for other plugins to override default sending to admin or user. Only useful if sending within this plugin is activated.
    152 UPDATED: updated with the newer pluggable send functions of WordPress 4.7.
    153 FIXED: Missing blogname in user email
    154 
    155 = 1.2.0 =
    156 ADDED: Manage sending password forgot e-mail to registered user.
    157 ADDED: Manage sending password forgot e-mail to administrator.
    158 
    159 = 1.1.0 =
    160 FIXED: Checking password change notification to admin now works.
    161 ADDED: Splitted the manage option for new user notification e-mail into user and admin e-mail.
    162 UPDATED: Clarified some comments and fixed some typo's.
    163 
    164 = 1.0 =
    165 * It all starts here.
     124For older versions, see [changelog.txt](https://plugins.svn.wordpress.org/manage-notification-emails/trunk/changelog.txt).
  • manage-notification-emails/trunk/core/class.FAMNE.php

    r3727849 r3733990  
    245245                 */
    246246                public static function update_check() {
     247                        /*
     248                         * On a multisite the version is stored network wide, so a site without settings
     249                         * (like a subsite or a newly created site) gets the defaults here.
     250                         */
     251                        if ( false !== self::get_option( 'fa_mne_version' ) && false === self::get_option( 'famne_options' ) ) {
     252                                self::update_option( 'famne_options', self::default_options() );
     253                        }
     254
    247255                        if ( self::get_option( 'fa_mne_version' ) !== FA_MNE_VERSION ) {
    248256                                $options         = self::get_option( 'famne_options' );
  • manage-notification-emails/trunk/manage-notification-emails.php

    r3727849 r3733990  
    33 * Plugin Name: Manage Notification E-mails
    44 * Description: This plugin gives you the option to disable some of the notification e-mails send by WordPress. It's a simple plugin but effective.
    5  * Version: 1.9.1
     5 * Version: 1.9.2
    66 * Author: Virgial Berveling
    77 * Author URI: https://www.freeamigos.nl
    … …  
    6464}
    6565
    66 define( 'FA_MNE_VERSION', '1.9.1' );
     66define( 'FA_MNE_VERSION', '1.9.2' );
    6767define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    6868define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( __DIR__ ) );
  • manage-notification-emails/trunk/modules/pluggable/pluggable-functions-1.5.php

    r3727768 r3733990  
    33 * Stop sending notification mails to the users.
    44 *
    5  * Version 1.5.4
     5 * Version 1.5.5
     6 * fixed: A site without settings (on multisite every site but the first) uses the default settings instead of disabling all notifications.
     7 * version 1.5.4
    68 * fixed: On multisite the new user notification to admin follows the network registration notification setting.
    79 * version 1.5.3
    … …  
    2325
    2426$famne_options = FAMNE::get_option( 'famne_options' );
     27
     28// Not installed on this site yet: FAMNE::update_check() saves the defaults on plugins_loaded.
     29if ( false === $famne_options ) {
     30        $famne_options = FAMNE::default_options();
     31}
    2532
    2633/*
  • manage-notification-emails/trunk/modules/pluggable/pluggable-functions-1.6.php

    r3727768 r3733990  
    33 * Stop sending notification mails to the users.
    44 *
    5  * Version 1.6.2
     5 * Version 1.6.3
     6 * fixed: A site without settings (on multisite every site but the first) uses the default settings instead of disabling all notifications.
     7 * version 1.6.2
    68 * fixed: Disabling the password forgotten e-mail no longer blocks password resets (and the new user e-mail) altogether.
    79 * fixed: On multisite the new user notification to admin follows the network registration notification setting.
    … …  
    1820$famne_options = FAMNE::get_option( 'famne_options' );
    1921
     22// Not installed on this site yet: FAMNE::update_check() saves the defaults on plugins_loaded.
     23if ( false === $famne_options ) {
     24        $famne_options = FAMNE::default_options();
     25}
     26
    2027/*
    2128 * On a multisite where each site manages its own settings, the new user notification
    … …  
    3037        array(
    3138                'name'    => 'Pluggable',
    32                 'version' => '1.6.2',
     39                'version' => '1.6.3',
    3340        )
    3441);
  • manage-notification-emails/trunk/readme.txt

    r3727849 r3733990  
    7373
    7474== Upgrade Notice ==
     75= 1.9.2 =
     76On multisite, sites that never got their own settings had all notifications disabled. They now get the default settings, so these sites send the notification e-mails again.
     77
    7578= 1.9.0 =
    7679Security hardening. Requires WordPress 5.2+. Password resets now always work; disabling the forgotten password e-mail only stops the e-mail. On multisite the new user e-mail to the site admin follows the network registration notification setting.
    7780
    78 = 1.1.0 =
    79 If you're one of the early installers, than you'll be happy to see that de new user notification is now splitted in admin and user e-mail management.
     81== Changelog ==
     82= 1.9.2 =
     83FIXED: On multisite only the first site got the default settings, so on the other sites all notifications were disabled. A site without settings now gets the default settings.
    8084
    81 == Changelog ==
    8285= 1.9.1 =
    8386FIXED: All PHP files now block direct access, as required by Plugin Check.
    … …  
    119122UPDATED: A lot of files are refactored and added some more comments along with it.
    120123
    121 = 1.7.1 =
    122 FIXED: Email automatic plugin update notification to admin sometimes still send out.
    123 
    124 = 1.7.0 =
    125 UPGRADED: Refactored the plugin and added a more suitable modular system for adding new features.
    126 ADDED: Send admin notifications to extra admin e-mail addresses
    127 ADDED: Send an e-mail to administrators after a user requested to update his or her e-mail address
    128 ADDED: Send an e-mail to administrators after a user successfully updated his or her e-mail address
    129 
    130 = 1.6.1 =
    131 FIXED: Email automatic plugin update notification to admin sometimes still send out.
    132 = 1.6.0 =
    133 ADDED: Automatic WordPress plugin, and theme update e-mail options.
    134 
    135 = 1.5.1 =
    136 FIXED: php-notice for missing $deprecated variable.
    137 = 1.5.0 =
    138 UPGRADED: Upgraded the pluggable functions file. Fixing the missing PassWordHash Class bug.
    139 
    140 = 1.4.2 =
    141 FIXED: Loading local language.
    142 
    143 = 1.4.1 =
    144 ADDED: Manage sending e-mail after a successful automatic WordPress core update to administrators. E-mails about failed updates will always be sent to the administrators and will not be disabled.
    145 
    146 
    147 = 1.4.0 =
    148 ADDED: Multi-language support
    149 
    150 = 1.3.0 =
    151 ADDED: passing through the $notify variable, available sinds 4.6. This is for other plugins to override default sending to admin or user. Only useful if sending within this plugin is activated.
    152 UPDATED: updated with the newer pluggable send functions of WordPress 4.7.
    153 FIXED: Missing blogname in user email
    154 
    155 = 1.2.0 =
    156 ADDED: Manage sending password forgot e-mail to registered user.
    157 ADDED: Manage sending password forgot e-mail to administrator.
    158 
    159 = 1.1.0 =
    160 FIXED: Checking password change notification to admin now works.
    161 ADDED: Splitted the manage option for new user notification e-mail into user and admin e-mail.
    162 UPDATED: Clarified some comments and fixed some typo's.
    163 
    164 = 1.0 =
    165 * It all starts here.
     124For older versions, see [changelog.txt](https://plugins.svn.wordpress.org/manage-notification-emails/trunk/changelog.txt).
Note: See TracChangeset for help on using the changeset viewer.