Changeset 3036574
- Timestamp:
- 02/15/2024 09:45:07 PM (2 years ago)
- Location:
- wp-admin-notification-center
- Files:
-
- 3 edited
- 21 copied
-
tags/3.1.0 (copied) (copied from wp-admin-notification-center/trunk)
-
tags/3.1.0/assets/css/global.css (copied) (copied from wp-admin-notification-center/trunk/assets/css/global.css)
-
tags/3.1.0/assets/css/notification_center.css (copied) (copied from wp-admin-notification-center/trunk/assets/css/notification_center.css)
-
tags/3.1.0/assets/images (copied) (copied from wp-admin-notification-center/trunk/assets/images)
-
tags/3.1.0/assets/js/notice.js (copied) (copied from wp-admin-notification-center/trunk/assets/js/notice.js) (3 diffs)
-
tags/3.1.0/assets/js/notice_not_allowed.js (copied) (copied from wp-admin-notification-center/trunk/assets/js/notice_not_allowed.js)
-
tags/3.1.0/index.php (copied) (copied from wp-admin-notification-center/trunk/index.php) (1 diff)
-
tags/3.1.0/lib/Database.php (copied) (copied from wp-admin-notification-center/trunk/lib/Database.php)
-
tags/3.1.0/lib/Debug.php (copied) (copied from wp-admin-notification-center/trunk/lib/Debug.php)
-
tags/3.1.0/lib/Repository.php (copied) (copied from wp-admin-notification-center/trunk/lib/Repository.php)
-
tags/3.1.0/readme.txt (copied) (copied from wp-admin-notification-center/trunk/readme.txt) (2 diffs)
-
tags/3.1.0/src/Controllers/Notices.php (copied) (copied from wp-admin-notification-center/trunk/src/Controllers/Notices.php)
-
tags/3.1.0/src/Controllers/NotificationCenter.php (copied) (copied from wp-admin-notification-center/trunk/src/Controllers/NotificationCenter.php)
-
tags/3.1.0/src/Controllers/Settings.php (copied) (copied from wp-admin-notification-center/trunk/src/Controllers/Settings.php)
-
tags/3.1.0/src/Entities (copied) (copied from wp-admin-notification-center/trunk/src/Entities)
-
tags/3.1.0/src/Init.php (copied) (copied from wp-admin-notification-center/trunk/src/Init.php)
-
tags/3.1.0/src/Repositories (copied) (copied from wp-admin-notification-center/trunk/src/Repositories)
-
tags/3.1.0/src/Services/NoticeListingService.php (copied) (copied from wp-admin-notification-center/trunk/src/Services/NoticeListingService.php)
-
tags/3.1.0/src/Services/UpdateService.php (copied) (copied from wp-admin-notification-center/trunk/src/Services/UpdateService.php)
-
tags/3.1.0/src/Views/notice (copied) (copied from wp-admin-notification-center/trunk/src/Views/notice)
-
tags/3.1.0/src/Views/settings.php (copied) (copied from wp-admin-notification-center/trunk/src/Views/settings.php)
-
trunk/assets/js/notice.js (modified) (3 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-admin-notification-center/tags/3.1.0/assets/js/notice.js
r2994668 r3036574 65 65 66 66 let numberOfNotification = 0; 67 for (let i = 0 ; i < this.adminNotifications.length; i++) {67 for (let i = 0; i < this.adminNotifications.length; i++) { 68 68 let containsSpamWord = false; 69 69 if (this.spamWords.length > 0) { 70 for (let j = 0 ; j < this.spamWords.length; j++) {70 for (let j = 0; j < this.spamWords.length; j++) { 71 71 if (this.adminNotifications[i].innerHTML.toLowerCase().indexOf(this.spamWords[j].toLowerCase()) === -1) continue; 72 72 containsSpamWord = true; … … 94 94 } 95 95 96 //We display the number of notification 97 this.buttonNotification.childNodes[0].innerHTML += ' <span id="wanc_display_notification_number">' + numberOfNotification + '</span>'; 96 if (numberOfNotification) { 97 //We display the number of notification 98 this.buttonNotification.childNodes[0].innerHTML += ' <span id="wanc_display_notification_number">' + numberOfNotification + '</span>'; 99 } 98 100 }, 99 101 initClickDisplayNotificationCenter: function () { … … 143 145 }, 144 146 initWhiteList: function () { 145 for (let i = 0 ; i < this.preAdminNotifications.length; i++) {147 for (let i = 0; i < this.preAdminNotifications.length; i++) { 146 148 let notWhiteListed = true; 147 149 if (this.whiteList.length > 0) { 148 for (let j = 0 ; j < this.whiteList.length; j++) {150 for (let j = 0; j < this.whiteList.length; j++) { 149 151 if (this.preAdminNotifications[i].innerHTML.toLowerCase().indexOf(this.whiteList[j].toLowerCase()) === -1) continue; 150 152 notWhiteListed = false; -
wp-admin-notification-center/tags/3.1.0/index.php
r2994668 r3036574 6 6 Author URI: https://github.com/roumilb 7 7 License: GPLv3 8 Version: 3. 0.08 Version: 3.1.0 9 9 Text Domain: wanc 10 10 Domain Path: /languages -
wp-admin-notification-center/tags/3.1.0/readme.txt
r2994668 r3036574 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.0 7 Stable tag: 3. 0.07 Stable tag: 3.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 == Changelog == 36 36 37 = 3.1.0 = 38 * Fix notification number showing 0 39 37 40 = 3.0.0 = 38 41 * Store notice displayed in the admin -
wp-admin-notification-center/trunk/assets/js/notice.js
r2994668 r3036574 65 65 66 66 let numberOfNotification = 0; 67 for (let i = 0 ; i < this.adminNotifications.length; i++) {67 for (let i = 0; i < this.adminNotifications.length; i++) { 68 68 let containsSpamWord = false; 69 69 if (this.spamWords.length > 0) { 70 for (let j = 0 ; j < this.spamWords.length; j++) {70 for (let j = 0; j < this.spamWords.length; j++) { 71 71 if (this.adminNotifications[i].innerHTML.toLowerCase().indexOf(this.spamWords[j].toLowerCase()) === -1) continue; 72 72 containsSpamWord = true; … … 94 94 } 95 95 96 //We display the number of notification 97 this.buttonNotification.childNodes[0].innerHTML += ' <span id="wanc_display_notification_number">' + numberOfNotification + '</span>'; 96 if (numberOfNotification) { 97 //We display the number of notification 98 this.buttonNotification.childNodes[0].innerHTML += ' <span id="wanc_display_notification_number">' + numberOfNotification + '</span>'; 99 } 98 100 }, 99 101 initClickDisplayNotificationCenter: function () { … … 143 145 }, 144 146 initWhiteList: function () { 145 for (let i = 0 ; i < this.preAdminNotifications.length; i++) {147 for (let i = 0; i < this.preAdminNotifications.length; i++) { 146 148 let notWhiteListed = true; 147 149 if (this.whiteList.length > 0) { 148 for (let j = 0 ; j < this.whiteList.length; j++) {150 for (let j = 0; j < this.whiteList.length; j++) { 149 151 if (this.preAdminNotifications[i].innerHTML.toLowerCase().indexOf(this.whiteList[j].toLowerCase()) === -1) continue; 150 152 notWhiteListed = false; -
wp-admin-notification-center/trunk/index.php
r2994668 r3036574 6 6 Author URI: https://github.com/roumilb 7 7 License: GPLv3 8 Version: 3. 0.08 Version: 3.1.0 9 9 Text Domain: wanc 10 10 Domain Path: /languages -
wp-admin-notification-center/trunk/readme.txt
r2994668 r3036574 5 5 Tested up to: 6.4 6 6 Requires PHP: 7.0 7 Stable tag: 3. 0.07 Stable tag: 3.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 == Changelog == 36 36 37 = 3.1.0 = 38 * Fix notification number showing 0 39 37 40 = 3.0.0 = 38 41 * Store notice displayed in the admin
Note: See TracChangeset
for help on using the changeset viewer.