PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← 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 /**