Changeset 2870029
- Timestamp:
- 02/23/2023 01:56:52 PM (3 years ago)
- Location:
- afterinc-app/trunk
- Files:
-
- 2 edited
-
Custom_app.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
afterinc-app/trunk/Custom_app.php
r2869895 r2870029 4 4 Plugin URI: https://www.afterinc.com/contact/ 5 5 Description: Plugin allows merchants to sell After Plan’s product protection plans for wide variety of products. 6 Version: 3.4. 26 Version: 3.4.3 7 7 Author: After Inc. 8 8 Author URI: https://www.afterinc.com … … 2889 2889 if ( ! function_exists( 'plugin_log' ) ) { 2890 2890 function plugin_log( $entry, $mode = 'a', $file = 'plugin' ) { 2891 // Get WordPress uploads directory. 2891 2892 2892 $upload_dir = wp_upload_dir(); 2893 2893 $upload_dir = $upload_dir['basedir']; 2894 // If the entry is array, json_encode.2894 2895 2895 if ( is_array( $entry ) ) { 2896 2896 $entry = json_encode( $entry ); 2897 2897 } 2898 2898 // Write the log file. 2899 $file = $upload_dir . '/' . $file . '.log';2899 $file = $upload_dir . '/' . $file .'-'. date('Y-m-d'). '.log'; 2900 2900 $file = fopen( $file, $mode ); 2901 2901 $bytes = fwrite( $file, current_time( 'mysql' ) . "::" . $entry . "\n" ); -
afterinc-app/trunk/readme.txt
r2869895 r2870029 7 7 Requires PHP: 7.2 8 8 WC tested up to: 5.6.0 9 Stable tag: 3.4. 29 Stable tag: 3.4.3 10 10 License: GPLv3 11 11 License URI: https://www.afterinc.com
Note: See TracChangeset
for help on using the changeset viewer.