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
ebda5deb4c
commit
148109d980
29 changed files with 366 additions and 329 deletions
|
@ -26,12 +26,11 @@ if ( ! defined( 'MAINWP_CHILD_URL' ) ) {
|
|||
|
||||
function mainwp_child_autoload( $class_name ) {
|
||||
|
||||
if ( 0 !== strpos( $class_name, 'MainWP\Child' ) ) {
|
||||
return;
|
||||
if ( 0 === strpos( $class_name, 'MainWP\Child' ) ) {
|
||||
// trip the namespace prefix: MainWP\Child\ .
|
||||
$class_name = substr( $class_name, 13 );
|
||||
}
|
||||
|
||||
// trip the namespace prefix: MainWP\Child\ .
|
||||
$class_name = substr( $class_name, 13 );
|
||||
|
||||
if ( 0 !== strpos( $class_name, 'MainWP_' ) ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue