Plugin Directory

Changeset 3457537


Ignore:
Timestamp:
02/09/2026 10:52:48 PM (10 days ago)
Author:
wpcentrics
Message:

updating new version

Location:
fish-and-ships/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fish-and-ships/trunk/fish-and-ships.php

    r3435451 r3457537  
    44 * Plugin URI: https://www.wp-centrics.com/
    55 * Description: The most flexible and all-in-one table rate shipping plugin. Previously named "Fish and Ships"
    6  * Version: 2.1.6
     6 * Version: 2.1.7
    77 * Author: wpcentrics
    88 * Author URI: https://www.wp-centrics.com
     
    1212 * Tested up to: 6.9
    1313 * WC requires at least: 3.0
    14  * WC tested up to: 10.4.3
     14 * WC tested up to: 10.5.0
    1515 * Requires PHP: 7.0
    1616 * Requires Plugins: woocommerce
     
    4343} else {
    4444
    45     define ('WC_FNS_VERSION', '2.1.6' );
     45    define ('WC_FNS_VERSION', '2.1.7' );
    4646    define ('WC_FNS_PATH', dirname(__FILE__) . '/' );
    4747    define ('WC_FNS_URL', plugin_dir_url( __FILE__ ) );
  • fish-and-ships/trunk/includes/logs-panel.php

    r3230054 r3457537  
    1111 * @package Advanced Shipping Rates for WC
    1212 * @since 1.0.0
    13  * @version 2.0
     13 * @version 2.1.7
    1414 */
    1515
     
    3737
    3838// Prevent too much logs, show error in the method that has the wrong setting only
    39 if ( ! wp_doing_ajax() && count($logs_index) >= 750 && $this->write_logs == 'everyone' ) {
     39if ( ! wp_doing_ajax() && count($logs_index) >= 300 && $this->write_logs == 'everyone' ) {
    4040
    4141    ?>
     
    4343    <?php
    4444}
     45
    4546// ...cut if more than 1000
    4647if ( count($logs_index) > 1000 ) {
    47    
    48     $n = 0;
    49     $logs_index_aux = array();
    50    
    51     foreach ($logs_index as $key => $val) {
    52         $n++;
    53         $logs_index_aux[$key] = $val;
    54         if ($n > 1000) break;
    55     }
    56     $logs_index = $logs_index_aux;
    57 }
    58 // End too much logs prevention
    59 
     48    array_splice($logs_index, 950);
     49}
    6050
    6151foreach ($logs_index as $key=>$log) {
    62     // Remove from index the missing transients (WP expired)
     52   
     53    // For performance, only will check current method logs & outdated transient logs
     54    if(    $log['instance_id'] != $instance_id
     55        && $log['time'] + DAY_IN_SECONDS * ( defined('WC_FNS_DAYS_LOG') ? WC_FNS_DAYS_LOG : 7 ) < time()
     56    ){
     57        continue;
     58    }
     59   
     60    // Remove from index the missing transients (WP expired or lost)
    6361    if (get_transient($log['name']) === false) {
    6462        unset ($logs_index[$key]);
     
    8785
    8886// too much messages? tell about in the logs pane
    89 if ( count($logs_index) >= 1000 ) {
     87if ( count($logs_index) >= 950 ) {
    9088    $html .= '<div class="notice notice-warning inline"><p><strong>Logs are limited to 1000 for performance reasons.</strong><br> Please, check if some Advanced Shipping Rates for WooCommerce method are logging calculations for all users (not only Admins / Shop managers).</p></div>';
    9189}
  • fish-and-ships/trunk/includes/shipping-class.php

    r3435451 r3457537  
    66 *
    77 * @package Advanced Shipping Rates for WC
    8  * @version 2.1.1
     8 * @version 2.1.7
    99 */
    1010
     
    10281028     *
    10291029     * @since 1.0.0
    1030      * @version 1.5.2
     1030     * @version 2.1.7
    10311031     */
    10321032     public function save_debug_log() {
     
    10361036        // Get the main list
    10371037        $logs_index = get_option('wc_fns_logs_index', array() );
     1038
     1039        // ...cut if more than 1000
     1040        if ( count($logs_index) > 1000 ) {
     1041            array_splice($logs_index, 950);
     1042        }
    10381043
    10391044        // Check if the last log is the same that current log
  • fish-and-ships/trunk/readme.txt

    r3435451 r3457537  
    77Tested up to: 6.9
    88WC requires at least: 3.0
    9 WC tested up to: 10.4.3
    10 Stable tag: 2.1.6
     9WC tested up to: 10.5.0
     10Stable tag: 2.1.7
    1111Requires PHP: 7.0
    1212Requires Plugins: woocommerce
     
    235235== Changelog ==
    236236
     237= 2.1.7 - 09/02/2026 =
     238* Checked for WC 10.5.0
     239* Improved performance when there are more than 1000 calculation logs saved
     240
    237241= 2.1.6 - 08/01/2026 =
    238242* Checked for PHP 8.4
Note: See TracChangeset for help on using the changeset viewer.