This commit is contained in:
André Menrath 2023-11-19 20:07:27 +01:00
parent 25e8e7451f
commit a104b8b6fd
4 changed files with 4 additions and 8 deletions

View file

@ -52,7 +52,7 @@ class Transformers_Manager {
/**
* Instance.
*
* Ensures only one instance of the module class is loaded or can be loaded.
* Ensures only one instance of the transformer manager class is loaded or can be loaded.
*
* @since version_number_transformer_management_placeholder
* @access public
@ -107,9 +107,6 @@ class Transformers_Manager {
require ACTIVITYPUB_PLUGIN_DIR . 'includes/class-transformer-base.php';
}
final public function T( $post_type ) {
return in_array($post_type, $this->supported_post_types);
}
/**
* Checks if a transformer is registered.

View file

@ -1,7 +1,7 @@
<?php
namespace Activitypub\Model;
use Activitypub\Transformer\Post as Post_Transformer;
use Activitypub\Transformer_Post as Post_Transformer;
/**
* ActivityPub Post Class

View file

@ -53,8 +53,6 @@ class Transformer_Post extends Transformer_Base {
return 'Built-In';
}
abstract
/**
*
*

View file

@ -260,10 +260,11 @@
$transformer_manager = \Activitypub\Transformers_Manager::instance();
$transformers = $transformer_manager->get_transformers();
// END OF DUMMY CODE
?>
<script>
// TODO Probably we should use checkboxes and not select and make this less buggy and insert the js at the right place.
document.addEventListener('DOMContentLoaded', function () {
var radioGroups = {};