Skip to content

Commit 6bb917b

Browse files
authored
Merge pull request #6 from torounit/refactor/namespace-torounit
Rename PHP namespace to Torounit\WP\Schedule_Terms
2 parents f1a9d1e + d80383f commit 6bb917b

16 files changed

Lines changed: 52 additions & 18 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ build
1313

1414
/vendor/
1515
*.tsbuildinfo
16+
.phpunit.result.cache

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Yes, scheduling can be enabled for any taxonomy that is shown in the admin UI (`
5757
### Unreleased
5858
* Tested WordPress 7.0.
5959
* Drop support for PHP 8.1.
60+
* Renamed the internal PHP namespace from `HAMWORKS\WP\Schedule_Terms` to `Torounit\WP\Schedule_Terms` (old class names are aliased for backward compatibility and will be removed in a future major release).
6061

6162
### 1.3.0
6263
* Tested WordPress 6.5.

composer.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"HAMWORKS\\WP\\Schedule_Terms\\": "./includes",
24-
"HAMWORKS\\WP\\Schedule_Terms\\Tests\\": "./tests/php"
25-
}
23+
"Torounit\\WP\\Schedule_Terms\\": "./includes",
24+
"Torounit\\WP\\Schedule_Terms\\Tests\\": "./tests/php"
25+
},
26+
"files": [
27+
"includes/compat.php"
28+
]
2629
},
2730
"scripts": {
2831
"test": "phpunit",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/Assets.php

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

8-
namespace HAMWORKS\WP\Schedule_Terms;
8+
namespace Torounit\WP\Schedule_Terms;
99

1010
/**
1111
* Class used to register style and js.

includes/Plugin.php

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

8-
namespace HAMWORKS\WP\Schedule_Terms;
8+
namespace Torounit\WP\Schedule_Terms;
99

1010
/**
1111
* Plugin base class.

includes/Post_Meta.php

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

8-
namespace HAMWORKS\WP\Schedule_Terms;
8+
namespace Torounit\WP\Schedule_Terms;
99

1010
/**
1111
* Register post meta.

includes/Schedule.php

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

8-
namespace HAMWORKS\WP\Schedule_Terms;
8+
namespace Torounit\WP\Schedule_Terms;
99

1010
use WP_Term;
1111

includes/Term/UI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @see https://github.com/JJJ/wp-term-meta-ui/blob/master/class-wp-term-meta-ui.php
77
*/
88

9-
namespace HAMWORKS\WP\Schedule_Terms\Term;
9+
namespace Torounit\WP\Schedule_Terms\Term;
1010

1111
use WP_Taxonomy;
1212
use WP_Term;

includes/Term_Manager.php

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

8-
namespace HAMWORKS\WP\Schedule_Terms;
8+
namespace Torounit\WP\Schedule_Terms;
99

1010
use WP_Term;
1111

0 commit comments

Comments
 (0)