Skip to content

Commit da19603

Browse files
committed
Move uninstall functionality into its own namespace, to keep separate from main plugin code
1 parent f16fd8f commit da19603

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

gulpfile.babel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const js: TaskFunction = series(jslint, () =>
7676
.pipe(sourcemaps.write('.'))
7777
.pipe(dest('js/min')))
7878

79-
export const i18n = parallel([
79+
export const i18n: TaskFunction = parallel([
8080
() => src(src_files.php)
8181
.pipe(makepot({
8282
domain: text_domain,

php/uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package Code_Snippets
66
*/
77

8-
namespace Code_Snippets;
8+
namespace Code_Snippets\Uninstall;
99

1010
/**
1111
* Determine whether the option for allowing a complete uninstallation is enabled.

uninstall.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?php
2-
32
/**
43
* Cleans up data created by this plugin
54
*
65
* @package Code_Snippets
76
* @since 2.0.0
87
*/
98

10-
namespace Code_Snippets;
9+
namespace Code_Snippets\Uninstall;
1110

1211
// Ensure this plugin is actually being uninstalled.
1312
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {

0 commit comments

Comments
 (0)