|
14 | 14 | return;
|
15 | 15 | }
|
16 | 16 |
|
| 17 | +/** |
| 18 | + * Takes care of bootstrapping Kirki Controls. |
| 19 | + */ |
17 | 20 | class Kirki_Controls_Bootstrap {
|
18 | 21 |
|
19 | 22 | /**
|
@@ -88,7 +91,6 @@ public function register_control_types() {
|
88 | 91 | *
|
89 | 92 | * @access public
|
90 | 93 | * @since 3.0.10
|
91 |
| - * @param array $control_types Any pre-existing control-types. |
92 | 94 | * @return array
|
93 | 95 | */
|
94 | 96 | public function get_control_types() {
|
@@ -142,7 +144,7 @@ protected function autoload( $class_name ) {
|
142 | 144 | if ( 0 === stripos( $class_name, 'Kirki_Control_' ) || 0 === stripos( $class_name, 'Kirki_Settings_' ) ) {
|
143 | 145 |
|
144 | 146 | // Build the file-path.
|
145 |
| - $path = wp_normalize_path( dirname( __FILE__ ) . '/classes/' . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php' ); |
| 147 | + $path = wp_normalize_path( dirname( __FILE__ ) . '/classes/class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php' ); |
146 | 148 | if ( file_exists( $path ) ) {
|
147 | 149 | include_once $path;
|
148 | 150 | }
|
@@ -180,7 +182,7 @@ public static function get_url( $file ) {
|
180 | 182 | self::$url = str_replace( get_stylesheet_directory(), get_stylesheet_directory_uri(), KIRKI_CONTROLS_PATH );
|
181 | 183 | } elseif ( false !== strpos( KIRKI_CONTROLS_PATH, get_template_directory() ) ) {
|
182 | 184 | self::$url = str_replace( get_template_directory(), get_template_directory_uri(), KIRKI_CONTROLS_PATH );
|
183 |
| - } elseif ( false !== strpos( KIRKI_CONTROLS_PATH, WP_PLUGIN_DIR ) ) { |
| 185 | + } elseif ( false !== strpos( KIRKI_CONTROLS_PATH, WP_PLUGIN_DIR ) ) { |
184 | 186 | self::$url = str_replace( WP_PLUGIN_DIR, plugins_url(), KIRKI_CONTROLS_PATH );
|
185 | 187 | }
|
186 | 188 | }
|
|
0 commit comments