Changeset 2051622
- Timestamp:
- 03/16/2019 10:41:58 AM (7 years ago)
- Location:
- xtra-settings/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
xtra.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xtra-settings/trunk/readme.txt
r1985363 r2051622 4 4 Tags: WordPress settings, hidden settings, tips and tricks, tweaks, WordPress options 5 5 Requires at least: 3.7 6 Tested up to: 5. 07 Stable tag: 2.0. 16 Tested up to: 5.1 7 Stable tag: 2.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 2.0.2 = 51 * Compatibility with WP 5.1 52 * Fixed Hits Counter daily mail sent twice 53 * Fixed Export Database header already started warning in some rare cases 54 50 55 = 2.0.1 = 51 56 * Fixed placement of Facebook SDK into wp-footer … … 354 359 == Upgrade Notice == 355 360 356 = 2.0. 0=361 = 2.0.2 = 357 362 For the best user experience, always upgrade to the latest version. -
xtra-settings/trunk/xtra.php
r1985363 r2051622 4 4 Plugin URI: https://wordpress.org/plugins/xtra-settings/ 5 5 Description: All useful hidden settings of Wordpress 6 Version: 2.0. 16 Version: 2.0.2 7 7 Author: fures 8 8 Author URI: http://www.fures.hu/xtra-settings/ … … 20 20 21 21 //. Defines 22 define( 'XTRA_VERSION', '2.0. 1' );22 define( 'XTRA_VERSION', '2.0.2' ); 23 23 define( 'XTRA_PLUGIN', __FILE__ ); 24 24 define( 'XTRA_PLUGIN_BASENAME', plugin_basename( XTRA_PLUGIN ) ); … … 3757 3757 3758 3758 function xtra_hits_send_mail($force="") { 3759 global $xtra_options; 3759 3760 if (!get_optionXTRA('xtra_hits_send_mail', 0) && $force != 'sendnow') return; 3760 3761 $addr = get_optionXTRA('xtra_hits_send_mail_text', ''); … … 3778 3779 $headers = array('Content-Type: text/html; charset=UTF-8'); 3779 3780 wp_mail($addr, $subject, $body, $headers); 3780 if ($force != 'sendnow') update_optionXTRA('xtra_hits_send_mail_last', time() ); 3781 if ($force != 'sendnow') { 3782 update_optionXTRA('xtra_hits_send_mail_last', time() ); 3783 $xtra_options['xtra_hits_send_mail_last'] = time(); 3784 } 3781 3785 } 3782 3786 } … … 4852 4856 $content .= "\n\n".$TableMLine[1].";\n\n"; $TableMLine[1]=str_ireplace('CREATE TABLE `','CREATE TABLE IF NOT EXISTS `',$TableMLine[1]); 4853 4857 for ($i = 0, $st_counter = 0; $i < $fields_amount; $i++, $st_counter=0) { 4854 while($row = $result->fetch_row()) { //when started (and every after 100 command cycle):4858 while($row = $result->fetch_row()) { 4855 4859 if ($st_counter%100 == 0 || $st_counter == 0 ) {$content .= "\nINSERT INTO ".$table." VALUES";} 4856 4860 $content .= "\n("; for($j=0; $j<$fields_amount; $j++){ $row[$j] = str_replace("\n","\\n", addslashes($row[$j]) ); if (isset($row[$j])){$content .= '"'.$row[$j].'"' ;} else{$content .= '""';} if ($j<($fields_amount-1)){$content.= ',';} } $content .=")"; 4857 //every after 100 command cycle [or at last line] ....p.s. but should be inserted 1 cycle eariler4858 4861 if ( (($st_counter+1)%100==0 && $st_counter!=0) || $st_counter+1==$rows_num) {$content .= ";";} else {$content .= ",";} $st_counter=$st_counter+1; 4859 4862 }
Note: See TracChangeset
for help on using the changeset viewer.