updated plugin Jetpack Protect version 3.0.2

This commit is contained in:
2024-10-09 12:44:31 +00:00
committed by Gitium
parent a35dc419bc
commit f970470c59
283 changed files with 6970 additions and 2338 deletions

View File

@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/
namespace Automattic\Jetpack\Autoloader\jpc4802e05bbcf59fd3b6350e8d3e5482c_protectⓥ2_2_0\al3_0_7;
namespace Automattic\Jetpack\Autoloader\jpc4802e05bbcf59fd3b6350e8d3e5482c_protectⓥ3_0_2\al3_1_0;
// phpcs:ignore
@ -57,6 +57,26 @@ class Version_Loader {
$this->filemap = $filemap;
}
/**
* Fetch the classmap.
*
* @since 3.1.0
* @return array<string, array>
*/
public function get_class_map() {
return $this->classmap;
}
/**
* Fetch the psr-4 mappings.
*
* @since 3.1.0
* @return array<string, array>
*/
public function get_psr4_map() {
return $this->psr4_map;
}
/**
* Finds the file path for the given class.
*
@ -66,7 +86,7 @@ class Version_Loader {
*/
public function find_class_file( $class_name ) {
$data = $this->select_newest_file(
isset( $this->classmap[ $class_name ] ) ? $this->classmap[ $class_name ] : null,
$this->classmap[ $class_name ] ?? null,
$this->find_psr4_file( $class_name )
);
if ( ! isset( $data ) ) {