diff --git a/CHANGELOG.md b/CHANGELOG.md index 20f105b7d3ca72139b59a406c0c975cd6530a210..affa3a3a5cd2d334d282f56b8b395cb3028abd10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.3.2] - 2019-09-18 +### Fixed +- Forgotten classes +- Fixed require_once + ## [1.3.0] - 2019-09-18 ### Added - Plugin classes from wp-requirements diff --git a/src/Plugin/WithoutNamespace/Has_Plugin_Info.php b/src/Plugin/WithoutNamespace/Has_Plugin_Info.php index 5ecf98d525474f04c37ff04a64ec6926e653e5c4..820f8a3e05557f6fd88ee8f842a6940dc2d2d8e8 100644 --- a/src/Plugin/WithoutNamespace/Has_Plugin_Info.php +++ b/src/Plugin/WithoutNamespace/Has_Plugin_Info.php @@ -1,7 +1,7 @@ <?php if ( ! interface_exists( 'WPDesk_Translatable' ) ) { - require_once __DIR__ . '/../Translatable.php'; + require_once __DIR__ . '/Translatable.php'; } diff --git a/src/Plugin/WithoutNamespace/Plugin_Info.php b/src/Plugin/WithoutNamespace/Plugin_Info.php index 693b408066013e55319f7b6ca32159849081ffea..0de62a48daabebb619ecaab072e5059b324d389a 100644 --- a/src/Plugin/WithoutNamespace/Plugin_Info.php +++ b/src/Plugin/WithoutNamespace/Plugin_Info.php @@ -1,10 +1,10 @@ <?php if ( ! interface_exists( 'WPDesk_Translatable' ) ) { - require_once __DIR__ . '/../Translatable.php'; + require_once __DIR__ . '/Translatable.php'; } if ( ! class_exists( 'WPDesk_Buildable' ) ) { - require_once __DIR__ . '/../Buildable.php'; + require_once __DIR__ . '/Buildable.php'; } if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) { require_once 'Has_Plugin_Info.php'; @@ -168,4 +168,4 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes public function set_text_domain( $value ) { $this->text_domain = $value; } -} \ No newline at end of file +} diff --git a/src/Plugin/WithoutNamespace/Translable.php b/src/Plugin/WithoutNamespace/Translable.php new file mode 100644 index 0000000000000000000000000000000000000000..c13e2a7e778efd5765940d3517969136766540fc --- /dev/null +++ b/src/Plugin/WithoutNamespace/Translable.php @@ -0,0 +1,9 @@ +<?php + +/** + * @deprecated Have typo so better use WPDesk_Translatable + */ +interface WPDesk_Translable { + /** @return string */ + public function get_text_domain(); +} \ No newline at end of file diff --git a/src/Plugin/WithoutNamespace/Translatable.php b/src/Plugin/WithoutNamespace/Translatable.php new file mode 100644 index 0000000000000000000000000000000000000000..a1d9eea460dfe4fd8a113ee8c670b813f5e76786 --- /dev/null +++ b/src/Plugin/WithoutNamespace/Translatable.php @@ -0,0 +1,15 @@ +<?php + +if ( ! interface_exists( 'WPDesk_Translable' ) ) { + require_once 'Translable.php'; +} + +/** + * Have info about textdomain - how to translate texts + * + * have to be compatible with PHP 5.2.x + */ +interface WPDesk_Translatable extends WPDesk_Translable { + /** @return string */ + public function get_text_domain(); +} \ No newline at end of file