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

fixes sin requirements and forgotten classes

parent 8c1e4c0d
No related branches found
Tags 1.3.2
No related merge requests found
Pipeline #8130 failed with stages
in 3 minutes and 20 seconds
## [1.3.2] - 2019-09-18
### Fixed
- Forgotten classes
- Fixed require_once
## [1.3.0] - 2019-09-18
### Added
- Plugin classes from wp-requirements
......
<?php
if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once __DIR__ . '/../Translatable.php';
require_once __DIR__ . '/Translatable.php';
}
......
<?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
}
<?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
<?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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment