mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
Refactoring
This commit is contained in:
parent
d1ee11a4fe
commit
3ea569fcfc
18 changed files with 72 additions and 60 deletions
|
@ -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 ) ) );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue