mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
parent
148109d980
commit
0d9a1dd3a6
8 changed files with 31 additions and 33 deletions
|
@ -28,9 +28,9 @@ function mainwp_child_autoload( $class_name ) {
|
|||
|
||||
if ( 0 === strpos( $class_name, 'MainWP\Child' ) ) {
|
||||
// trip the namespace prefix: MainWP\Child\ .
|
||||
$class_name = substr( $class_name, 13 );
|
||||
$class_name = substr( $class_name, 13 );
|
||||
}
|
||||
|
||||
|
||||
if ( 0 !== strpos( $class_name, 'MainWP_' ) ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue