@@ -89,23 +89,23 @@ discard block |
||
89 | 89 | $name_parts = explode( '_', str_replace( 'Kirki_', '', $class_name ) ); |
90 | 90 | |
91 | 91 | // Handle modules loading. |
92 | - if ( isset( $name_parts[0] ) && 'Modules' === $name_parts[0] ) { |
|
92 | + if ( isset( $name_parts[ 0 ] ) && 'Modules' === $name_parts[ 0 ] ) { |
|
93 | 93 | $path = dirname( __FILE__ ) . '/modules/'; |
94 | 94 | $path .= strtolower( str_replace( '_', '-', str_replace( 'Kirki_Modules_', '', $class_name ) ) ) . '/'; |
95 | - $paths[] = $path . $filename; |
|
95 | + $paths[ ] = $path . $filename; |
|
96 | 96 | } |
97 | 97 | |
98 | - if ( isset( $name_parts[0] ) ) { |
|
98 | + if ( isset( $name_parts[ 0 ] ) ) { |
|
99 | 99 | |
100 | 100 | // Handle controls loading. |
101 | - if ( 'Control' === $name_parts[0] || 'Settings' === $name_parts[0] ) { |
|
101 | + if ( 'Control' === $name_parts[ 0 ] || 'Settings' === $name_parts[ 0 ] ) { |
|
102 | 102 | $path = dirname( __FILE__ ) . '/controls/php/'; |
103 | - $paths[] = $path . $filename; |
|
103 | + $paths[ ] = $path . $filename; |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
107 | - $paths[] = dirname( __FILE__ ) . '/core/' . $filename; |
|
108 | - $paths[] = dirname( __FILE__ ) . '/lib/' . $filename; |
|
107 | + $paths[ ] = dirname( __FILE__ ) . '/core/' . $filename; |
|
108 | + $paths[ ] = dirname( __FILE__ ) . '/lib/' . $filename; |
|
109 | 109 | |
110 | 110 | $substr = str_replace( 'Kirki_', '', $class_name ); |
111 | 111 | $exploded = explode( '_', $substr ); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | $previous_path = ''; |
115 | 115 | for ( $i = 0; $i < $levels; $i++ ) { |
116 | - $paths[] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename; |
|
116 | + $paths[ ] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename; |
|
117 | 117 | $previous_path .= strtolower( $exploded[ $i ] ) . '/'; |
118 | 118 | } |
119 | 119 | return $paths; |