Skip to content

Commit

Permalink
Version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chwnam committed Nov 22, 2021
1 parent 2a51b55 commit 9699191
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
0.3.0
-----
2021-11-22

- Merge pull request #1.
- Fix uninstall script.


0.2.0
-----
2021-11-13
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"email": "[email protected]",
"role": "author",
"homepage": "https://blog.changwoo.pe.kr"
},
{
"name": "wolfkang",
"email": "[email protected]",
"role": "contributor",
"homepage": "https://shoplic.kr/"
}
],
"scripts": {
Expand All @@ -33,7 +39,7 @@
"includes"
]
},
"version": "0.2.0",
"version": "0.3.0",
"require-dev": {
"phpunit/phpunit": "^7"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
if ( ! class_exists( 'NSS_Register_Base_Uninstall' ) ) {
abstract class NSS_Register_Base_Uninstall implements NSS_Register {
public function __construct() {
register_uninstall_hook( nss()->get_main_file(), [ $this, 'register' ] );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion includes/modules/class-nss-registers.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct() {
'option' => NSS_Register_Option::class,
'script' => NSS_Register_Script::class,
'style' => NSS_Register_Style::class,
'uninstall' => NSS_Register_Uninstall::class,
'uninstall' => function () { return new NSS_Register_Uninstall(); },
]
);
}
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Naran Social Share
* Plugin URI: https://github.com/chwnam/naran-social-share
* Description: Share your posts to social media, and so on.
* Version: 0.2.0
* Version: 0.3.0
* Requires at least: 4.4.0
* Requires PHP: 7.4
* Author: changwoo
Expand All @@ -23,7 +23,7 @@
require_once __DIR__ . '/vendor/autoload.php';

const NSS_MAIN_FILE = __FILE__;
const NSS_VERSION = '0.2.0';
const NSS_VERSION = '0.3.0';
const NSS_PRIORITY = 885;

nss();
8 changes: 3 additions & 5 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
die;
}

foreach ( nss()->registers->uninstall->get_items() as $item ) {
if ( $item instanceof NSS_Register_Uninstall ) {
$item->register();
}
}
require_once __DIR__ . '/index.php';

nss()->registers->uninstall->register();

0 comments on commit 9699191

Please sign in to comment.