Update activitypub.php

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
Matthias Pfefferle 2023-05-10 18:50:20 +02:00 committed by GitHub
parent 6fce2c30d2
commit 75c1c6a402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ spl_autoload_register(
$base_dir = $base_dir . $sub_dir . DIRECTORY_SEPARATOR;
}
$filename = 'class-' . str_replace( '_', '-', $class );
$filename = 'class-' . strtr( $class, '_', '-' );
$file = $base_dir . $filename . '.php';
if ( file_exists( $file ) ) {