/
home
/
vianto5
/
ceibaresidencial.mx
/
wp-content
/
plugins
/
google-site-kit
/
includes
/
Core
/
Util
/
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/google-site-kit/includes/Core/Util
mkdir
upload
Name
Size
Mode
Actions
Activation_Flag.php
3324
0644
edit
dl
rm
Activation_Notice.php
4206
0644
edit
dl
rm
Auto_Updates.php
4390
0644
edit
dl
rm
BC_Functions.php
6507
0644
edit
dl
rm
Block_Support.php
1354
0644
edit
dl
rm
Collection_Key_Cap_Filter.php
1411
0644
edit
dl
rm
Current_Screen.php
987
0644
edit
dl
rm
Date.php
2711
0644
edit
dl
rm
Developer_Plugin_Installer.php
5574
0644
edit
dl
rm
Entity.php
3278
0644
edit
dl
rm
Entity_Factory.php
21124
0644
edit
dl
rm
Exit_Handler.php
836
0644
edit
dl
rm
Feature_Flags.php
2381
0644
edit
dl
rm
Google_Icon.php
1880
0644
edit
dl
rm
Google_URL_Matcher_Trait.php
3096
0644
edit
dl
rm
Google_URL_Normalizer.php
1637
0644
edit
dl
rm
Health_Checks.php
4088
0644
edit
dl
rm
Input.php
2826
0644
edit
dl
rm
Method_Proxy_Trait.php
1118
0644
edit
dl
rm
Migrate_Legacy_Keys.php
1109
0644
edit
dl
rm
Migration_1_3_0.php
3039
0644
edit
dl
rm
Migration_1_8_1.php
7016
0644
edit
dl
rm
Migration_1_123_0.php
4647
0644
edit
dl
rm
Migration_1_129_0.php
4111
0644
edit
dl
rm
Migration_1_150_0.php
3191
0644
edit
dl
rm
Migration_1_163_0.php
3157
0644
edit
dl
rm
Migration_1_177_0.php
2861
0644
edit
dl
rm
Migration_1_185_0.php
2953
0644
edit
dl
rm
Plugin_Status.php
1390
0644
edit
dl
rm
Requires_Javascript_Trait.php
1116
0644
edit
dl
rm
Reset.php
9968
0644
edit
dl
rm
Reset_Persistent.php
666
0644
edit
dl
rm
REST_Entity_Search_Controller.php
3416
0644
edit
dl
rm
Sanitize.php
1068
0644
edit
dl
rm
Scopes.php
2655
0644
edit
dl
rm
Sort.php
1123
0644
edit
dl
rm
Synthetic_WP_Query.php
4182
0644
edit
dl
rm
Uninstallation.php
4399
0644
edit
dl
rm
URL.php
5581
0644
edit
dl
rm
WP_Context_Switcher_Trait.php
2176
0644
edit
dl
rm
WP_Query_Factory.php
10000
0644
edit
dl
rm
Edit:
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/google-site-kit/includes/Core/Util/Scopes.php
(2655B)
<?php /** * Class Google\Site_Kit\Core\Util\Scopes * * @package Google\Site_Kit\Core\Util * @copyright 2021 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Util; /** * Utility class for handling generic OAuth scope functions. * * @since 1.9.0 * @access private * @ignore */ class Scopes { /** * Mapping of requested scope to satisfying scopes. * * @since 1.9.0 * * @var array */ protected static $map = array( 'https://www.googleapis.com/auth/adsense.readonly' => array( 'https://www.googleapis.com/auth/adsense', ), 'https://www.googleapis.com/auth/analytics.readonly' => array( 'requires_all' => true, 'https://www.googleapis.com/auth/analytics', 'https://www.googleapis.com/auth/analytics.edit', ), 'https://www.googleapis.com/auth/tagmanager.readonly' => array( 'https://www.googleapis.com/auth/tagmanager.edit.containers', ), 'https://www.googleapis.com/auth/webmasters.readonly' => array( 'https://www.googleapis.com/auth/webmasters', ), ); /** * Tests if the given scope is satisfied by the given list of granted scopes. * * @since 1.9.0 * * @param string $scope OAuth scope to test for. * @param string[] $granted_scopes Available OAuth scopes to test the individual scope against. * @return bool True if the given scope is satisfied, otherwise false. */ public static function is_satisfied_by( $scope, array $granted_scopes ) { if ( in_array( $scope, $granted_scopes, true ) ) { return true; } if ( empty( self::$map[ $scope ] ) ) { return false; } $satisfying_scopes = array_filter( self::$map[ $scope ], 'is_string' ); if ( ! empty( self::$map[ $scope ]['requires_all'] ) ) { // Return true if all satisfying scopes are present, otherwise false. return ! array_diff( $satisfying_scopes, $granted_scopes ); } // Return true if any of the scopes are present, otherwise false. return (bool) array_intersect( $satisfying_scopes, $granted_scopes ); } /** * Tests if all the given scopes are satisfied by the list of granted scopes. * * @since 1.9.0 * * @param string[] $scopes OAuth scopes to test. * @param string[] $granted_scopes OAuth scopes to test $scopes against. * @return bool True if all given scopes are satisfied, otherwise false. */ public static function are_satisfied_by( array $scopes, array $granted_scopes ) { foreach ( $scopes as $scope ) { if ( ! self::is_satisfied_by( $scope, $granted_scopes ) ) { return false; } } return true; } }
Save
cmd:
run