- Timestamp:
- 10/02/2026 04:56:21 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
login-armor/trunk/includes/ActivityLog/ActivityLog.php
r3722536 r3725161 116 116 */ 117 117 public static function create_table(): void { 118 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 119 dbDelta( self::table_statement() ); 120 } 121 122 /** 123 * The CREATE TABLE statement of the activity table. 124 * 125 * Split out of create_table() in 2.8.0 so the schema check 126 * (LoginArmor::missing_schema_columns()) reads the same columns. 127 */ 128 public static function table_statement(): string { 118 129 global $wpdb; 119 130 … … 121 132 $table = $wpdb->prefix . 'login_armor_activity'; 122 133 123 $sql ="CREATE TABLE {$table} (134 return "CREATE TABLE {$table} ( 124 135 id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, 125 136 user_id bigint(20) UNSIGNED NOT NULL, … … 141 152 KEY row_hash (row_hash) 142 153 ) $charset_collate;"; 143 144 require_once ABSPATH . 'wp-admin/includes/upgrade.php';145 dbDelta( $sql );146 154 } 147 155
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)