Plugin Directory

Changeset 3105595


Ignore:
Timestamp:
06/21/2024 10:13:02 AM (21 months ago)
Author:
roumi
Message:

Release 3.2.0

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

Legend:

Unmodified
Added
Removed
  • wp-admin-notification-center/tags/3.2.0/index.php

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

    r3036574 r3105595  
    33Tags: notification, notice, notices, notifications, admin
    44Requires at least: 5.0
    5 Tested up to: 6.4
     5Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 3.1.0
     7Stable tag: 3.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-admin-notification-center/tags/3.2.0/src/Init.php

    r2994668 r3105595  
    1616    {
    1717        if (is_admin()) {
     18            (new UpdateService())->install();
    1819            (new UpdateService())->update();
    1920        }
  • wp-admin-notification-center/tags/3.2.0/src/Services/UpdateService.php

    r2994668 r3105595  
    66use WANC\Debug;
    77use WANC\Repositories\NoticeRepository;
     8use WANC\Database;
    89
    910class UpdateService
     
    3031        $wancSettings->updateOption('wanc_version', $currentVersion);
    3132    }
     33
     34    public function install() {
     35        $tableWanc = Database::getVar('SHOW TABLES LIKE "%wanc%"');
     36
     37        if(!empty($tableWanc)) {
     38            return;
     39        }
     40
     41        $noticeRepository = new NoticeRepository();
     42        $noticeRepository->createDatabaseTable();
     43    }
    3244}
  • wp-admin-notification-center/trunk/index.php

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

    r3036574 r3105595  
    33Tags: notification, notice, notices, notifications, admin
    44Requires at least: 5.0
    5 Tested up to: 6.4
     5Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 3.1.0
     7Stable tag: 3.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-admin-notification-center/trunk/src/Init.php

    r2994668 r3105595  
    1616    {
    1717        if (is_admin()) {
     18            (new UpdateService())->install();
    1819            (new UpdateService())->update();
    1920        }
  • wp-admin-notification-center/trunk/src/Services/UpdateService.php

    r2994668 r3105595  
    66use WANC\Debug;
    77use WANC\Repositories\NoticeRepository;
     8use WANC\Database;
    89
    910class UpdateService
     
    3031        $wancSettings->updateOption('wanc_version', $currentVersion);
    3132    }
     33
     34    public function install() {
     35        $tableWanc = Database::getVar('SHOW TABLES LIKE "%wanc%"');
     36
     37        if(!empty($tableWanc)) {
     38            return;
     39        }
     40
     41        $noticeRepository = new NoticeRepository();
     42        $noticeRepository->createDatabaseTable();
     43    }
    3244}
Note: See TracChangeset for help on using the changeset viewer.