Changeset 3463474
- Timestamp:
- 02/17/2026 12:16:55 PM (6 weeks ago)
- Location:
- folder-auditor
- Files:
-
- 83 added
- 1 deleted
- 3 edited
-
tags/6.5 (added)
-
tags/6.5/assets (added)
-
tags/6.5/assets/admin.js (added)
-
tags/6.5/assets/brand-banner.webp (added)
-
tags/6.5/assets/dark-icon.png (added)
-
tags/6.5/assets/email.jpg (added)
-
tags/6.5/assets/icon.png (added)
-
tags/6.5/assets/locker-ajax.js (added)
-
tags/6.5/assets/magic.webp (added)
-
tags/6.5/assets/style.css (added)
-
tags/6.5/folder-auditor.php (added)
-
tags/6.5/includes (added)
-
tags/6.5/includes/bridge (added)
-
tags/6.5/includes/bridge/status.php (added)
-
tags/6.5/includes/bridge/unlock-relock.php (added)
-
tags/6.5/includes/class-wp-folder-auditor.php (added)
-
tags/6.5/includes/handlers (added)
-
tags/6.5/includes/handlers/handler-actions.php (added)
-
tags/6.5/includes/handlers/handler-blacklist-checker.php (added)
-
tags/6.5/includes/handlers/handler-content.php (added)
-
tags/6.5/includes/handlers/handler-htaccess.php (added)
-
tags/6.5/includes/handlers/handler-plugin-refresher.php (added)
-
tags/6.5/includes/handlers/handler-plugins.php (added)
-
tags/6.5/includes/handlers/handler-root.php (added)
-
tags/6.5/includes/handlers/handler-scanner.php (added)
-
tags/6.5/includes/handlers/handler-settings.php (added)
-
tags/6.5/includes/handlers/handler-ssl-checker.php (added)
-
tags/6.5/includes/handlers/handler-themes.php (added)
-
tags/6.5/includes/handlers/handler-uploads.php (added)
-
tags/6.5/includes/helpers (added)
-
tags/6.5/includes/helpers/admin.php (added)
-
tags/6.5/includes/helpers/health-score (added)
-
tags/6.5/includes/helpers/health-score/health-score-display.php (added)
-
tags/6.5/includes/helpers/health-score/health-score-functions.php (added)
-
tags/6.5/includes/helpers/html-export.php (added)
-
tags/6.5/includes/helpers/lock-system (added)
-
tags/6.5/includes/helpers/lock-system/folder-locker.php (added)
-
tags/6.5/includes/helpers/lock-system/traits (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Actions.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Assets.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Cache.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_FS.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_FSModal.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_NoticesBar.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Request.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Status.php (added)
-
tags/6.5/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Targets.php (added)
-
tags/6.5/includes/helpers/reports (added)
-
tags/6.5/includes/helpers/reports/index.html (added)
-
tags/6.5/includes/helpers/safe-paths.php (added)
-
tags/6.5/includes/helpers/scanner (added)
-
tags/6.5/includes/helpers/scanner/patterns.php (added)
-
tags/6.5/includes/helpers/scanner/scanner.php (added)
-
tags/6.5/includes/helpers/security-headers.php (added)
-
tags/6.5/includes/helpers/user-security.php (added)
-
tags/6.5/includes/summaries (added)
-
tags/6.5/includes/summaries/summary-content.php (added)
-
tags/6.5/includes/summaries/summary-htaccess.php (added)
-
tags/6.5/includes/summaries/summary-plugins.php (added)
-
tags/6.5/includes/summaries/summary-root.php (added)
-
tags/6.5/includes/summaries/summary-themes.php (added)
-
tags/6.5/includes/summaries/summary-totals.php (added)
-
tags/6.5/includes/summaries/summary-uploads.php (added)
-
tags/6.5/includes/views (added)
-
tags/6.5/includes/views/view-audit.php (added)
-
tags/6.5/includes/views/view-blacklist-checker.php (added)
-
tags/6.5/includes/views/view-content.php (added)
-
tags/6.5/includes/views/view-dashboard.php (added)
-
tags/6.5/includes/views/view-file-remover.php (added)
-
tags/6.5/includes/views/view-header.php (added)
-
tags/6.5/includes/views/view-htaccess-files.php (added)
-
tags/6.5/includes/views/view-html-export.php (added)
-
tags/6.5/includes/views/view-plugin-refresher.php (added)
-
tags/6.5/includes/views/view-plugins.php (added)
-
tags/6.5/includes/views/view-root.php (added)
-
tags/6.5/includes/views/view-scanner.php (added)
-
tags/6.5/includes/views/view-security.php (added)
-
tags/6.5/includes/views/view-settings.php (added)
-
tags/6.5/includes/views/view-ssl-checker.php (added)
-
tags/6.5/includes/views/view-themes.php (added)
-
tags/6.5/includes/views/view-tools.php (added)
-
tags/6.5/includes/views/view-uploads.php (added)
-
tags/6.5/readme.txt (added)
-
trunk/folder-auditor.php (modified) (2 diffs)
-
trunk/includes/helpers/reports/Guard-Dog-Security-Report.html (deleted)
-
trunk/includes/helpers/user-security.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
folder-auditor/trunk/folder-auditor.php
r3455544 r3463474 3 3 * Plugin Name: Guard Dog Security & Site Lock 4 4 * Description: Helps WordPress administrators take full control of their site. It scans critical areas including the root directory, wp-content, plugins, themes, uploads, and .htaccess files to detect anything suspicious such as orphaned folders, leftover files, or hidden PHP in uploads. From the WordPress dashboard, you can safely review, download, or remove items that don’t belong, with built-in protection to ensure required resources remain untouched. In addition, Guard Dog Security lets you lock all files and folders as read-only, preventing unauthorized changes, additions, or deletions to your WordPress installation. 5 * Version: 6. 45 * Version: 6.5 6 6 * Author: WP Fix It 7 7 * Author URI: https://www.wpfixit.com … … 18 18 19 19 define( 'FA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 20 21 /** 22 * Bail early on normal front-end requests so none of this code loads on the public site. 23 */ 24 if ( ! is_admin() 25 && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) 26 && ! ( defined( 'DOING_CRON' ) && DOING_CRON ) 27 && ! ( defined( 'WP_CLI' ) && WP_CLI ) 28 ) { 29 return; 30 } 20 31 21 32 require_once FA_PLUGIN_DIR . 'includes/class-wp-folder-auditor.php'; -
folder-auditor/trunk/includes/helpers/user-security.php
r3454767 r3463474 1163 1163 add_filter('rest_pre_insert_user', function($prepared_user, $request, $creating = null) use ($is_admin_user){ 1164 1164 1165 $target_id = isset($prepared_user['id']) ? (int)$prepared_user['id'] : 0; 1165 $target_id = 0; 1166 1167 if ( is_object( $prepared_user ) ) { 1168 // WP core uses $prepared_user->ID 1169 if ( isset( $prepared_user->ID ) ) { 1170 $target_id = (int) $prepared_user->ID; 1171 } elseif ( isset( $prepared_user->id ) ) { 1172 $target_id = (int) $prepared_user->id; 1173 } 1174 } elseif ( is_array( $prepared_user ) ) { 1175 if ( isset( $prepared_user['id'] ) ) { 1176 $target_id = (int) $prepared_user['id']; 1177 } elseif ( isset( $prepared_user['ID'] ) ) { 1178 $target_id = (int) $prepared_user['ID']; 1179 } 1180 } 1181 1182 // Extra fallback: the request usually has the id on updates 1183 if ( ! $target_id && $request && isset( $request['id'] ) ) { 1184 $target_id = (int) $request['id']; 1185 } 1166 1186 1167 1187 $target_is_admin_already = $target_id ? $is_admin_user($target_id) : false; -
folder-auditor/trunk/readme.txt
r3455544 r3463474 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 6. 48 Stable tag: 6.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 101 101 == Changelog == 102 102 103 = 6.5 = 104 * Made plugin code run only in admin area where needed 105 103 106 = 6.4 = 104 107 * Fixed styling issue on scanner page … … 274 277 == Upgrade Notice == 275 278 279 = 6.5 = 280 * Made plugin code run only in admin area where needed 281 276 282 = 6.4 = 277 283 * Fixed styling issue on scanner page
Note: See TracChangeset
for help on using the changeset viewer.