Changeset 3176146
- Timestamp:
- 10/26/2024 06:38:56 PM (17 months ago)
- Location:
- deltabackups
- Files:
-
- 4 edited
-
tags/1.0.4/deltabackups-main.php (modified) (2 diffs)
-
tags/1.0.4/readme.txt (modified) (1 diff)
-
trunk/deltabackups-main.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
deltabackups/tags/1.0.4/deltabackups-main.php
r3176127 r3176146 147 147 148 148 echo '<tr>'; 149 echo '<td>' . esc_html(date('Y-m-d H:i:s', ( esc_html($item['createdAt']) / 1000))) . '</td>';149 echo '<td>' . esc_html(date('Y-m-d H:i:s', (round(esc_html($item['createdAt']) / 1000 )))) . '</td>'; 150 150 echo '<td>' . esc_html($item['backupId']) . '</td>'; 151 151 echo '<td>' . esc_html($item['hasFiles'] ? 'Yes' : 'No') . '</td>'; … … 983 983 function dtbps_modify_sql_query($line, $wpPrefix) { 984 984 // replace only first occurrence, create wp_options and all inserts to wp_options except wp_user_roles 985 if(strpos($line, 'wp_posts') !== false || (strpos($line, 'wp_options') !== false && strpos($line, 'wp_user_roles') === false)) { 985 $pattern = '/(wp_posts|wp_postmeta|wp_commentmeta|wp_term_taxonomy|wp_options(?!.*wp_user_roles))/'; 986 987 // Use preg_replace to perform the operation 988 if (preg_match($pattern, $line)) { 986 989 return preg_replace('/' . preg_quote(DTBPS_DB_SQL_TABLE_DEFAULT_PREFIX, '/') . '/', $wpPrefix, $line, 1); 987 990 } -
deltabackups/tags/1.0.4/readme.txt
r3176127 r3176146 70 70 71 71 = v1.0.4 = 72 * Fixed wp_options prefix table modification for installations that have now wp_prefix like prod_options etc.72 * Fixed wp_options, wp_posts and wp_postmeta, wp_commentmeta, wp_term_taxonomy prefix table modification for installations that have now wp_prefix like prod_options etc. 73 73 74 74 = v1.0.3 = -
deltabackups/trunk/deltabackups-main.php
r3176126 r3176146 147 147 148 148 echo '<tr>'; 149 echo '<td>' . esc_html(date('Y-m-d H:i:s', ( esc_html($item['createdAt']) / 1000))) . '</td>';149 echo '<td>' . esc_html(date('Y-m-d H:i:s', (round(esc_html($item['createdAt']) / 1000 )))) . '</td>'; 150 150 echo '<td>' . esc_html($item['backupId']) . '</td>'; 151 151 echo '<td>' . esc_html($item['hasFiles'] ? 'Yes' : 'No') . '</td>'; … … 983 983 function dtbps_modify_sql_query($line, $wpPrefix) { 984 984 // replace only first occurrence, create wp_options and all inserts to wp_options except wp_user_roles 985 if(strpos($line, 'wp_posts') !== false || (strpos($line, 'wp_options') !== false && strpos($line, 'wp_user_roles') === false)) { 985 $pattern = '/(wp_posts|wp_postmeta|wp_commentmeta|wp_term_taxonomy|wp_options(?!.*wp_user_roles))/'; 986 987 // Use preg_replace to perform the operation 988 if (preg_match($pattern, $line)) { 986 989 return preg_replace('/' . preg_quote(DTBPS_DB_SQL_TABLE_DEFAULT_PREFIX, '/') . '/', $wpPrefix, $line, 1); 987 990 } -
deltabackups/trunk/readme.txt
r3176126 r3176146 70 70 71 71 = v1.0.4 = 72 * Fixed wp_options prefix table modification for installations that have now wp_prefix like prod_options etc.72 * Fixed wp_options, wp_posts and wp_postmeta, wp_commentmeta, wp_term_taxonomy prefix table modification for installations that have now wp_prefix like prod_options etc. 73 73 74 74 = v1.0.3 =
Note: See TracChangeset
for help on using the changeset viewer.