Refactoring

This commit is contained in:
thanghv 2020-05-09 00:55:01 +07:00
parent d1ee11a4fe
commit 3ea569fcfc
18 changed files with 72 additions and 60 deletions

View file

@ -31,10 +31,6 @@ function mainwp_child_autoload( $class_name ) {
$class_name = substr( $class_name, 13 );
}
if ( 0 !== strpos( $class_name, 'MainWP_' ) ) {
return;
}
$autoload_dir = \trailingslashit( dirname( __FILE__ ) . '/class' );
$autoload_path = sprintf( '%sclass-%s.php', $autoload_dir, strtolower( str_replace( '_', '-', $class_name ) ) );