Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion includes/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ function __invoke( $args = array(), $assoc_args = array() ) {
// All content manipulators are stored in pruners, formatters, sanitizers, generators folders. They are namespaced, but not in classes,
// so we can't use the autoloader for them.
// Also, because they need add_action/add_filter to load, we can only include them after WP has loaded, so it's not part of the autoloader.
$content_manipulators = glob( __DIR__ . '/{pruners,formatters,sanitizers,generators}/*.php', GLOB_BRACE );
$content_manipulators = array_merge(
glob( __DIR__ . '/pruners/*.php' ),
glob( __DIR__ . '/formatters/*.php' ),
glob( __DIR__ . '/sanitizers/*.php' ),
glob( __DIR__ . '/generators/*.php' )
);

foreach ( $content_manipulators as $content_manipulator ) {
require_once $content_manipulator;
Expand Down