Changeset 2918068
- Timestamp:
- 05/27/2023 01:00:18 PM (3 years ago)
- File:
-
- 1 edited
-
cryptopay-wc-lite/trunk/app/Loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cryptopay-wc-lite/trunk/app/Loader.php
r2918067 r2918068 68 68 $reason = isset($_POST['reason']) ? sanitize_text_field($_POST['reason']) : ''; 69 69 70 try { 71 try { 72 $userEmail = wp_get_current_user()->user_email; 73 } catch (\Throwable $th) { 74 global $wpdb; 75 $userEmail = ($wpdb->get_row("SELECT * FROM {$wpdb->users} WHERE ID = 1"))->user_email; 76 } 77 } catch (\Throwable $th) { 78 $userEmail = ''; 79 } 80 70 81 $data = [ 71 82 'reason' => $reason, … … 74 85 'site' => get_site_url(), 75 86 'adminEmail' => get_option('admin_email'), 76 'userEmail' => get_userdata(1)->user_email,87 'userEmail' => $userEmail, 77 88 'name' => get_option('blogname'), 78 89 ];
Note: See TracChangeset
for help on using the changeset viewer.