Plugin Directory

Changeset 2870029


Ignore:
Timestamp:
02/23/2023 01:56:52 PM (3 years ago)
Author:
aftercommerce
Message:

update the log file status.

Location:
afterinc-app/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • afterinc-app/trunk/Custom_app.php

    r2869895 r2870029  
    44Plugin URI: https://www.afterinc.com/contact/
    55Description: Plugin allows merchants to sell After Plan’s product protection plans for wide variety of products.
    6 Version: 3.4.2
     6Version: 3.4.3
    77Author: After Inc.
    88Author URI: https://www.afterinc.com
     
    28892889if ( ! function_exists( 'plugin_log' ) ) {
    28902890  function plugin_log( $entry, $mode = 'a', $file = 'plugin' ) {
    2891     // Get WordPress uploads directory.
     2891
    28922892    $upload_dir = wp_upload_dir();
    28932893    $upload_dir = $upload_dir['basedir'];
    2894     // If the entry is array, json_encode.
     2894   
    28952895    if ( is_array( $entry ) ) {
    28962896      $entry = json_encode( $entry );
    28972897    }
    28982898    // Write the log file.
    2899     $file  = $upload_dir . '/' . $file . '.log';
     2899    $file  = $upload_dir . '/' . $file .'-'. date('Y-m-d'). '.log';
    29002900    $file  = fopen( $file, $mode );
    29012901    $bytes = fwrite( $file, current_time( 'mysql' ) . "::" . $entry . "\n" );
  • afterinc-app/trunk/readme.txt

    r2869895 r2870029  
    77Requires PHP: 7.2
    88WC tested up to: 5.6.0
    9 Stable tag: 3.4.2
     9Stable tag: 3.4.3
    1010License: GPLv3
    1111License URI: https://www.afterinc.com
Note: See TracChangeset for help on using the changeset viewer.