Changeset 3420443
- Timestamp:
- 12/15/2025 06:35:32 PM (3 months ago)
- Location:
- product-sales-report-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/2.0.7 (copied) (copied from product-sales-report-for-woocommerce/trunk)
-
tags/2.0.7/admin/admin.php (modified) (2 diffs)
-
tags/2.0.7/hm-product-sales-report.php (modified) (3 diffs)
-
tags/2.0.7/includes/berrypress-admin-framework/Page.php (modified) (1 diff)
-
tags/2.0.7/readme.txt (modified) (2 diffs)
-
trunk/admin/admin.php (modified) (2 diffs)
-
trunk/hm-product-sales-report.php (modified) (3 diffs)
-
trunk/includes/berrypress-admin-framework/Page.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-sales-report-for-woocommerce/tags/2.0.7/admin/admin.php
r3398377 r3420443 177 177 178 178 if ($isNew) { 179 $savedReportSettings[] = stripslashes_deep($_POST);179 $savedReportSettings[] = $_POST; 180 180 } else { 181 181 $savedReportSettings[(int) $_REQUEST['preset']] = $_POST; 182 182 } 183 update_option('ninjalytics_settings', $savedReportSettings, false);183 update_option('ninjalytics_settings', array_values($savedReportSettings), false); 184 184 185 185 if ($isNew) { … … 192 192 193 193 unset($savedReportSettings[(int) $_GET['preset']]); 194 update_option('ninjalytics_settings', $savedReportSettings, false);194 update_option('ninjalytics_settings', array_values($savedReportSettings), false); 195 195 delete_option('ninjalytics_report_dates_'.((int) $_GET['preset'])); 196 196 unset($_GET['preset']); -
product-sales-report-for-woocommerce/tags/2.0.7/hm-product-sales-report.php
r3415823 r3420443 4 4 * Description: Generates a report on individual WooCommerce products sold during a specified time period. 5 5 * Plugin URI: https://berrypress.com/product/woocommerce/ninjalytics/ 6 * Version: 2.0. 67 * WC tested up to: 10. 36 * Version: 2.0.7 7 * WC tested up to: 10.4 8 8 * WC requires at least: 2.2 9 9 * Author: BerryPress … … 44 44 use Ninjalytics\Reporters\PlatformFeatures; 45 45 46 define('NINJALYTICS_VERSION', '2.0. 6');46 define('NINJALYTICS_VERSION', '2.0.7'); 47 47 48 48 add_filter('default_option_ninjalytics_settings', 'ninjalytics_psr_import'); … … 278 278 global $pagenow, $ninjalytics_email_result; 279 279 280 $ninjalytics_action = sanitize_text_field(wp_unslash($_REQUEST['ninjalytics_action'] ?? '')); 281 280 282 // Check if we are in admin and on the report page 281 if (!is_admin() && (($_REQUEST['ninjalytics_action'] ?? '') != 'apikey')) 282 return; 283 if (($pagenow == 'admin.php' && isset($_GET['page']) && $_GET['page'] == 'ninjalytics') || (($_REQUEST['ninjalytics_action'] ?? '') == 'apikey')) { 283 if (!is_admin() && $ninjalytics_action != 'apikey') { 284 return; 285 } 286 287 if (($pagenow == 'admin.php' && isset($_GET['page']) && $_GET['page'] == 'ninjalytics') || ($ninjalytics_action == 'apikey')) { 284 288 285 289 add_filter('nocache_headers', 'ninjalytics_filter_nocache_headers', 9999); 286 290 nocache_headers(); 287 291 288 switch ( sanitize_text_field(wp_unslash($_REQUEST['ninjalytics_action'] ?? ''))) {292 switch ($ninjalytics_action) { 289 293 case 'run': 290 294 -
product-sales-report-for-woocommerce/tags/2.0.7/includes/berrypress-admin-framework/Page.php
r3393922 r3420443 79 79 <span class="berrypress-logo"> 80 80 <?php echo esc_html( $header_text ); ?> 81 <span style="font-weight:300"> Alpha</span>81 <span style="font-weight:300">Beta</span> 82 82 </span> 83 83 </a> -
product-sales-report-for-woocommerce/tags/2.0.7/readme.txt
r3415823 r3420443 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 2.0. 66 Tested up to: 6.9 7 Stable tag: 2.0.7 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 182 182 183 183 == Changelog == 184 185 = 2.0.7, 2025-12-15 = 186 - Fix issue after deleting report preset 184 187 185 188 = 2.0.6, 2025-12-09 = -
product-sales-report-for-woocommerce/trunk/admin/admin.php
r3398377 r3420443 177 177 178 178 if ($isNew) { 179 $savedReportSettings[] = stripslashes_deep($_POST);179 $savedReportSettings[] = $_POST; 180 180 } else { 181 181 $savedReportSettings[(int) $_REQUEST['preset']] = $_POST; 182 182 } 183 update_option('ninjalytics_settings', $savedReportSettings, false);183 update_option('ninjalytics_settings', array_values($savedReportSettings), false); 184 184 185 185 if ($isNew) { … … 192 192 193 193 unset($savedReportSettings[(int) $_GET['preset']]); 194 update_option('ninjalytics_settings', $savedReportSettings, false);194 update_option('ninjalytics_settings', array_values($savedReportSettings), false); 195 195 delete_option('ninjalytics_report_dates_'.((int) $_GET['preset'])); 196 196 unset($_GET['preset']); -
product-sales-report-for-woocommerce/trunk/hm-product-sales-report.php
r3415823 r3420443 4 4 * Description: Generates a report on individual WooCommerce products sold during a specified time period. 5 5 * Plugin URI: https://berrypress.com/product/woocommerce/ninjalytics/ 6 * Version: 2.0. 67 * WC tested up to: 10. 36 * Version: 2.0.7 7 * WC tested up to: 10.4 8 8 * WC requires at least: 2.2 9 9 * Author: BerryPress … … 44 44 use Ninjalytics\Reporters\PlatformFeatures; 45 45 46 define('NINJALYTICS_VERSION', '2.0. 6');46 define('NINJALYTICS_VERSION', '2.0.7'); 47 47 48 48 add_filter('default_option_ninjalytics_settings', 'ninjalytics_psr_import'); … … 278 278 global $pagenow, $ninjalytics_email_result; 279 279 280 $ninjalytics_action = sanitize_text_field(wp_unslash($_REQUEST['ninjalytics_action'] ?? '')); 281 280 282 // Check if we are in admin and on the report page 281 if (!is_admin() && (($_REQUEST['ninjalytics_action'] ?? '') != 'apikey')) 282 return; 283 if (($pagenow == 'admin.php' && isset($_GET['page']) && $_GET['page'] == 'ninjalytics') || (($_REQUEST['ninjalytics_action'] ?? '') == 'apikey')) { 283 if (!is_admin() && $ninjalytics_action != 'apikey') { 284 return; 285 } 286 287 if (($pagenow == 'admin.php' && isset($_GET['page']) && $_GET['page'] == 'ninjalytics') || ($ninjalytics_action == 'apikey')) { 284 288 285 289 add_filter('nocache_headers', 'ninjalytics_filter_nocache_headers', 9999); 286 290 nocache_headers(); 287 291 288 switch ( sanitize_text_field(wp_unslash($_REQUEST['ninjalytics_action'] ?? ''))) {292 switch ($ninjalytics_action) { 289 293 case 'run': 290 294 -
product-sales-report-for-woocommerce/trunk/includes/berrypress-admin-framework/Page.php
r3393922 r3420443 79 79 <span class="berrypress-logo"> 80 80 <?php echo esc_html( $header_text ); ?> 81 <span style="font-weight:300"> Alpha</span>81 <span style="font-weight:300">Beta</span> 82 82 </span> 83 83 </a> -
product-sales-report-for-woocommerce/trunk/readme.txt
r3415823 r3420443 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 2.0. 66 Tested up to: 6.9 7 Stable tag: 2.0.7 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 182 182 183 183 == Changelog == 184 185 = 2.0.7, 2025-12-15 = 186 - Fix issue after deleting report preset 184 187 185 188 = 2.0.6, 2025-12-09 =
Note: See TracChangeset
for help on using the changeset viewer.