← All changes
|
vendor/jetpack-autoloader/class-plugin-locator.php
+2
-5
12.0.3
→
16.3-a.1
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack-autoloader |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ12_0; | |
| 8 | +namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ16_3_a_1\al6_0_0; | |
| 9 | 9 | |
| 10 | 10 | // phpcs:ignore |
| 11 | 11 | |
| 12 | 12 | /** |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * @throws \RuntimeException If the current plugin does not have an autoloader. |
| 39 | 39 | */ |
| 40 | 40 | public function find_current_plugin() { |
| 41 | 41 | // Escape from `vendor/__DIR__` to root plugin directory. |
| 42 | - $plugin_directory = dirname( dirname( __DIR__ ) ); | |
| 42 | + $plugin_directory = dirname( __DIR__, 2 ); | |
| 43 | 43 | |
| 44 | 44 | // Use the path processor to ensure that this is an autoloader we're referencing. |
| 45 | 45 | $path = $this->path_processor->find_directory_with_autoloader( $plugin_directory, array() ); |
| 46 | 46 | if ( false === $path ) { |
| @@ -74,10 +74,8 @@ | ||
| 74 | 74 | * |
| 75 | 75 | * @return array $plugin_paths The list of absolute paths we've found. |
| 76 | 76 | */ |
| 77 | 77 | public function find_using_request_action( $allowed_actions ) { |
| 78 | - // phpcs:disable WordPress.Security.NonceVerification.Recommended | |
| 79 | - | |
| 80 | 78 | /** |
| 81 | 79 | * Note: we're not actually checking the nonce here because it's too early |
| 82 | 80 | * in the execution. The pluggable functions are not yet loaded to give |
| 83 | 81 | * plugins a chance to plug their versions. Therefore we're doing the bare |
| @@ -116,9 +114,8 @@ | ||
| 116 | 114 | $plugin_slugs = wp_unslash( $_REQUEST['checked'] ); |
| 117 | 115 | break; |
| 118 | 116 | } |
| 119 | 117 | |
| 120 | - // phpcs:enable WordPress.Security.NonceVerification.Recommended | |
| 121 | 118 | return $this->convert_plugins_to_paths( $plugin_slugs ); |
| 122 | 119 | } |
| 123 | 120 | |
| 124 | 121 | /** |