Plugin Directory

Changeset 3105667


Ignore:
Timestamp:
06/21/2024 12:51:49 PM (20 months ago)
Author:
roumi
Message:

Release 3.2.1

Location:
wp-admin-notification-center
Files:
4 edited
21 copied

Legend:

Unmodified
Added
Removed
  • wp-admin-notification-center/tags/3.2.1/assets/js/notice.js

    r3105595 r3105667  
    4343        setTimeout(() => {
    4444            this.moveNotifications();
    45             this.saveNotices();
    4645        }, 500);
    4746    },
     
    157156        }
    158157    },
    159     saveNotices: function () {
    160         const formData = new FormData();
    161 
    162         formData.set('action', 'save_notices');
    163         this.notificationsDisplayed.forEach((notice, index) => {
    164             formData.set(`notices[${index}]`, JSON.stringify(notice.outerHTML));
    165         });
    166 
    167         fetch(ajaxurl, {method: 'POST', body: formData}).then(response => {
    168             return response.text();
    169         });
    170     }
    171158};
    172159
  • wp-admin-notification-center/tags/3.2.1/index.php

    r3105595 r3105667  
    66Author URI: https://github.com/roumilb
    77License: GPLv3
    8 Version: 3.2.0
     8Version: 3.2.1
    99Text Domain: wanc
    1010Domain Path: /languages
  • wp-admin-notification-center/tags/3.2.1/readme.txt

    r3105595 r3105667  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 3.2.0
     7Stable tag: 3.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
    37 = 3.1.0 =
     37= 3.2.0 =
    3838* Fix notification number showing 0
    3939
  • wp-admin-notification-center/tags/3.2.1/src/Init.php

    r3105595 r3105667  
    1515    public function __construct()
    1616    {
    17         if (is_admin()) {
    18             (new UpdateService())->install();
    19             (new UpdateService())->update();
    20         }
    21 
    2217        add_action('admin_menu', [$this, 'registerWancOptionsPage']);
    2318        add_action('admin_enqueue_scripts', [$this, 'addScript']);
  • wp-admin-notification-center/trunk/assets/js/notice.js

    r3105595 r3105667  
    4343        setTimeout(() => {
    4444            this.moveNotifications();
    45             this.saveNotices();
    4645        }, 500);
    4746    },
     
    157156        }
    158157    },
    159     saveNotices: function () {
    160         const formData = new FormData();
    161 
    162         formData.set('action', 'save_notices');
    163         this.notificationsDisplayed.forEach((notice, index) => {
    164             formData.set(`notices[${index}]`, JSON.stringify(notice.outerHTML));
    165         });
    166 
    167         fetch(ajaxurl, {method: 'POST', body: formData}).then(response => {
    168             return response.text();
    169         });
    170     }
    171158};
    172159
  • wp-admin-notification-center/trunk/index.php

    r3105595 r3105667  
    66Author URI: https://github.com/roumilb
    77License: GPLv3
    8 Version: 3.2.0
     8Version: 3.2.1
    99Text Domain: wanc
    1010Domain Path: /languages
  • wp-admin-notification-center/trunk/readme.txt

    r3105595 r3105667  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 3.2.0
     7Stable tag: 3.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
    37 = 3.1.0 =
     37= 3.2.0 =
    3838* Fix notification number showing 0
    3939
  • wp-admin-notification-center/trunk/src/Init.php

    r3105595 r3105667  
    1515    public function __construct()
    1616    {
    17         if (is_admin()) {
    18             (new UpdateService())->install();
    19             (new UpdateService())->update();
    20         }
    21 
    2217        add_action('admin_menu', [$this, 'registerWancOptionsPage']);
    2318        add_action('admin_enqueue_scripts', [$this, 'addScript']);
Note: See TracChangeset for help on using the changeset viewer.