From 455dd537c65ab474b2223320d295834c55b8925c Mon Sep 17 00:00:00 2001
From: dyszczo <krzysztof.dyszczyk@gmail.com>
Date: Wed, 18 Sep 2019 16:51:51 +0200
Subject: [PATCH] fixes sin requirements and forgotten classes

---
 CHANGELOG.md                                    |  5 +++++
 src/Plugin/WithoutNamespace/Has_Plugin_Info.php |  2 +-
 src/Plugin/WithoutNamespace/Plugin_Info.php     |  6 +++---
 src/Plugin/WithoutNamespace/Translable.php      |  9 +++++++++
 src/Plugin/WithoutNamespace/Translatable.php    | 15 +++++++++++++++
 5 files changed, 33 insertions(+), 4 deletions(-)
 create mode 100644 src/Plugin/WithoutNamespace/Translable.php
 create mode 100644 src/Plugin/WithoutNamespace/Translatable.php

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 20f105b..affa3a3 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 5ecf98d..820f8a3 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 693b408..0de62a4 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 0000000..c13e2a7
--- /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 0000000..a1d9eea
--- /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
-- 
GitLab