Changeset 2891808
- Timestamp:
- 04/01/2023 12:43:48 PM (3 years ago)
- Location:
- protect-admin-account/trunk
- Files:
-
- 6 edited
-
freemius/includes/class-fs-api.php (modified) (2 diffs)
-
freemius/includes/sdk/FreemiusWordPress.php (modified) (2 diffs)
-
freemius/start.php (modified) (1 diff)
-
includes/paa-filters.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
protect-admin-account/trunk/freemius/includes/class-fs-api.php
r2886597 r2891808 372 372 * @param array $remote_args 373 373 * 374 * @return mixed374 * @return array|WP_Error The response array or a WP_Error on failure. 375 375 */ 376 376 static function remote_request( $url, $remote_args ) { … … 387 387 388 388 if ( 389 empty( $response['headers'] ) || 390 empty( $response['headers']['x-api-server'] ) 389 is_array( $response ) && 390 ( 391 empty( $response['headers'] ) || 392 empty( $response['headers']['x-api-server'] ) 393 ) 391 394 ) { 392 395 // API is considered blocked if the response doesn't include the `x-api-server` header. When there's no error but this header doesn't exist, the response is usually not in the expected form (e.g., cannot be JSON-decoded). -
protect-admin-account/trunk/freemius/includes/sdk/FreemiusWordPress.php
r2886597 r2891808 349 349 * @param array $pWPRemoteArgs 350 350 * 351 * @return mixed351 * @return array|WP_Error The response array or a WP_Error on failure. 352 352 */ 353 353 static function RemoteRequest( $pUrl, $pWPRemoteArgs ) { … … 355 355 356 356 if ( 357 empty( $response['headers'] ) || 358 empty( $response['headers']['x-api-server'] ) 357 is_array( $response ) && 358 ( 359 empty( $response['headers'] ) || 360 empty( $response['headers']['x-api-server'] ) 361 ) 359 362 ) { 360 363 // API is considered blocked if the response doesn't include the `x-api-server` header. When there's no error but this header doesn't exist, the response is usually not in the expected form (e.g., cannot be JSON-decoded). -
protect-admin-account/trunk/freemius/start.php
r2886597 r2891808 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.5. 5';18 $this_sdk_version = '2.5.6'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- -
protect-admin-account/trunk/includes/paa-filters.php
r2807778 r2891808 8 8 9 9 $thp_paa_options = get_option( 'thp_paa_options' ); 10 $protected_users = $thp_paa_options['protected_users'];11 if ( array_key_exists($user_object->id, $protected_users) && ($protected_users[$user_object->id] == '1')) {10 $protected_users = array_key_exists('protected_users', $thp_paa_options) ? $thp_paa_options['protected_users'] : ''; 11 if ( !empty( $protected_users ) && array_key_exists($user_object->ID, $protected_users) && ($protected_users[$user_object->ID] == '1')) { 12 12 $activator_id = thp_paa_get_activator_id(); 13 13 $current_user = wp_get_current_user()->ID; -
protect-admin-account/trunk/index.php
r2886597 r2891808 4 4 * Plugin URI: https://protectadmin.com/plugin/protect-admin-account-pro-wordpress-plugin/ 5 5 * Description: Protect admin accounts from being deleted or modified by other users. 6 * Version: 2.0. 06 * Version: 2.0.1 7 7 * Author: Keystroke Click 8 8 * Author URI: https://keystrokeclick.com/ -
protect-admin-account/trunk/readme.txt
r2886605 r2891808 6 6 Tested up to: 6.1.1 7 7 Requires PHP: 5.3 8 Stable tag: 2.0. 08 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 100 100 == Changelog == 101 101 102 = 2.0.1 = 103 * Fix: Problem in Users admin page when no configured protected users yet 104 102 105 = 2.0.0 = 103 106 * Platform functionality integration
Note: See TracChangeset
for help on using the changeset viewer.