Skip to content
Snippets Groups Projects
Commit fba049c3 authored by dyszczo's avatar dyszczo
Browse files

Fix typo in Translatable library name - major incompatilibity in dependent libraries

parent 57d76f5a
No related branches found
No related tags found
2 merge requests!8Devel,!6Feature/refactor
<?php <?php
if ( ! interface_exists( 'WPDesk_Translable' ) ) { if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once 'Translable.php'; require_once 'Translatable.php';
} }
/** /**
* Checks requirements for plugin * Checks requirements for plugin
* have to be compatible with PHP 5.2.x * have to be compatible with PHP 5.2.x
*/ */
class WPDesk_Basic_Requirement_Checker implements WPDesk_Translable { class WPDesk_Basic_Requirement_Checker implements WPDesk_Translatable {
const EXTENSION_NAME_OPENSSL = 'openssl'; const EXTENSION_NAME_OPENSSL = 'openssl';
const HOOK_ADMIN_NOTICES_ACTION = 'admin_notices'; const HOOK_ADMIN_NOTICES_ACTION = 'admin_notices';
......
<?php <?php
if ( ! interface_exists( 'WPDesk_Translable' ) ) { if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once dirname(__FILE__) . '/../Translable.php'; require_once __DIR__ . '/../Translatable.php';
} }
...@@ -10,7 +10,7 @@ if ( ! interface_exists( 'WPDesk_Translable' ) ) { ...@@ -10,7 +10,7 @@ if ( ! interface_exists( 'WPDesk_Translable' ) ) {
* *
* have to be compatible with PHP 5.2.x * have to be compatible with PHP 5.2.x
*/ */
interface WPDesk_Has_Plugin_Info extends WPDesk_Translable { interface WPDesk_Has_Plugin_Info extends WPDesk_Translatable {
/** /**
* @return string * @return string
*/ */
......
<?php <?php
if ( ! interface_exists( 'WPDesk_Translable' ) ) { if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once dirname(__FILE__) . '/../Translable.php'; require_once __DIR__ . '/../Translatable.php';
} }
if ( ! class_exists( 'WPDesk_Buildable' ) ) { if ( ! class_exists( 'WPDesk_Buildable' ) ) {
require_once dirname(__FILE__) . '/../Buildable.php'; require_once __DIR__ . '/../Buildable.php';
} }
if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) { if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) {
require_once 'Has_Plugin_Info.php'; require_once 'Has_Plugin_Info.php';
...@@ -15,7 +15,7 @@ if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) { ...@@ -15,7 +15,7 @@ if ( ! class_exists( 'WPDesk_Has_Plugin_Info' ) ) {
* *
* have to be compatible with PHP 5.2.x * have to be compatible with PHP 5.2.x
*/ */
class WPDesk_Plugin_Info implements WPDesk_Translable, WPDesk_Buildable, WPDesk_Has_Plugin_Info { class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDesk_Has_Plugin_Info {
/** @var string */ /** @var string */
private $plugin_file_name; private $plugin_file_name;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* have to be compatible with PHP 5.2.x * have to be compatible with PHP 5.2.x
*/ */
interface WPDesk_Translable { interface WPDesk_Translatable {
/** @return string */ /** @return string */
public function get_text_domain(); public function get_text_domain();
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment