Plugin Directory

Changeset 2051622


Ignore:
Timestamp:
03/16/2019 10:41:58 AM (7 years ago)
Author:
fures
Message:

Commit 2.0.2

Location:
xtra-settings/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xtra-settings/trunk/readme.txt

    r1985363 r2051622  
    44Tags: WordPress settings, hidden settings, tips and tricks, tweaks, WordPress options
    55Requires at least: 3.7
    6 Tested up to: 5.0
    7 Stable tag: 2.0.1
     6Tested up to: 5.1
     7Stable tag: 2.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     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
    5055= 2.0.1 =
    5156* Fixed placement of Facebook SDK into wp-footer
     
    354359== Upgrade Notice ==
    355360
    356 = 2.0.0 =
     361= 2.0.2 =
    357362For the best user experience, always upgrade to the latest version.
  • xtra-settings/trunk/xtra.php

    r1985363 r2051622  
    44Plugin URI: https://wordpress.org/plugins/xtra-settings/
    55Description: All useful hidden settings of Wordpress
    6 Version: 2.0.1
     6Version: 2.0.2
    77Author: fures
    88Author URI: http://www.fures.hu/xtra-settings/
     
    2020
    2121//. Defines
    22 define( 'XTRA_VERSION', '2.0.1' );
     22define( 'XTRA_VERSION', '2.0.2' );
    2323define( 'XTRA_PLUGIN', __FILE__ );
    2424define( 'XTRA_PLUGIN_BASENAME', plugin_basename( XTRA_PLUGIN ) );
     
    37573757
    37583758function xtra_hits_send_mail($force="") {
     3759global $xtra_options;
    37593760    if (!get_optionXTRA('xtra_hits_send_mail', 0) && $force != 'sendnow') return;
    37603761    $addr = get_optionXTRA('xtra_hits_send_mail_text', '');
     
    37783779            $headers = array('Content-Type: text/html; charset=UTF-8');
    37793780            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            }
    37813785        }
    37823786    }
     
    48524856        $content .= "\n\n".$TableMLine[1].";\n\n";   $TableMLine[1]=str_ireplace('CREATE TABLE `','CREATE TABLE IF NOT EXISTS `',$TableMLine[1]);
    48534857        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())  {
    48554859                if ($st_counter%100 == 0 || $st_counter == 0 )  {$content .= "\nINSERT INTO ".$table." VALUES";}
    48564860                    $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 eariler
    48584861                if ( (($st_counter+1)%100==0 && $st_counter!=0) || $st_counter+1==$rows_num) {$content .= ";";} else {$content .= ",";} $st_counter=$st_counter+1;
    48594862            }
Note: See TracChangeset for help on using the changeset viewer.