packages/autoloader/src/class-classes-handler.php 1 location
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
* |
| 65 |
|
* @return Array An array of plugin names and classmap paths. |
| 66 |
|
*/ |
| 67 |
|
public function create_classmap_path_array( $plugin ) { |
| 68 |
|
$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . $plugin; |
| 69 |
|
|
| 70 |
|
if ( ! file_exists( $plugin_path ) ) { |
| 71 |
|
$plugin_path = trailingslashit( WPMU_PLUGIN_DIR ) . $plugin; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_classmap.php'; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Initializes the classmap. |
packages/autoloader/src/class-files-handler.php 1 location
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
* |
| 65 |
|
* @return Array An array of plugin names and filemap paths. |
| 66 |
|
*/ |
| 67 |
|
public function create_filemap_path_array( $plugin ) { |
| 68 |
|
$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . $plugin; |
| 69 |
|
|
| 70 |
|
if ( ! file_exists( $plugin_path ) ) { |
| 71 |
|
$plugin_path = trailingslashit( WPMU_PLUGIN_DIR ) . $plugin; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_filemap.php'; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Initializes the filemap. |