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
No related tags found
No related merge requests found
Pipeline #8130 failed
## [1.3.2] - 2019-09-18
### Fixed
- Forgotten classes
- Fixed require_once
## [1.3.0] - 2019-09-18 ## [1.3.0] - 2019-09-18
### Added ### Added
- Plugin classes from wp-requirements - Plugin classes from wp-requirements
......
<?php <?php
if ( ! interface_exists( 'WPDesk_Translatable' ) ) { if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once __DIR__ . '/../Translatable.php'; require_once __DIR__ . '/Translatable.php';
} }
......
<?php <?php
if ( ! interface_exists( 'WPDesk_Translatable' ) ) { if ( ! interface_exists( 'WPDesk_Translatable' ) ) {
require_once __DIR__ . '/../Translatable.php'; require_once __DIR__ . '/Translatable.php';
} }
if ( ! class_exists( 'WPDesk_Buildable' ) ) { if ( ! class_exists( 'WPDesk_Buildable' ) ) {
require_once __DIR__ . '/../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';
......
<?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.
Please register or to comment