chore: initial snapshot of 2meet-data-optimizer v0.1.0
Baseline before backporting wp-data-optimizer v3.0.1-v3.4.6. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Backward-compat interface alias.
|
||||
*
|
||||
* PHP class_alias() does NOT support interfaces. This file declares
|
||||
* `WPDO_Entity_Adapter_Interface` as a child of `TMDO_Entity_Adapter_Interface`
|
||||
* (no new methods), which allows sister plugins that type-hint against the old
|
||||
* name to keep working: the four TMDO adapters implement this interface, so
|
||||
* `instanceof WPDO_Entity_Adapter_Interface` returns true for all of them.
|
||||
*
|
||||
* Loaded by `class-tmdo-back-compat.php` after the real interface is loaded.
|
||||
*
|
||||
* @package TMDO
|
||||
* @since 0.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! interface_exists( 'WPDO_Entity_Adapter_Interface', false ) && interface_exists( 'TMDO_Entity_Adapter_Interface', false ) ) {
|
||||
/**
|
||||
* Backward-compat alias interface. Any class implementing
|
||||
* `WPDO_Entity_Adapter_Interface` automatically satisfies
|
||||
* `TMDO_Entity_Adapter_Interface` and vice-versa.
|
||||
*
|
||||
* Will emit `_doing_it_wrong()` notice in v0.2.0+.
|
||||
*/
|
||||
interface WPDO_Entity_Adapter_Interface extends TMDO_Entity_Adapter_Interface {}
|
||||
}
|
||||
Reference in New Issue
Block a user