| @@ -268,9 +268,10 @@ | ||
| 268 | 268 | private function _getCSV( $rows, $filename, $enclose ) { |
| 269 | 269 | $filename .= '.csv'; |
| 270 | 270 | |
| 271 | 271 | $bom = chr( 0xEF ) . chr( 0xBB ) . chr( 0xBF ); |
| 272 | - $fp = tmpfile(); | |
| 272 | + // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged | |
| 273 | + $fp = @tmpfile(); | |
| 273 | 274 | if ( null === $fp ) { |
| 274 | 275 | $fp = fopen( wp_tempnam(), 'w+' ); |
| 275 | 276 | } |
| 276 | 277 | if ( ! apply_filters( 'vizualizer_export_include_series_type', true ) ) { |
| @@ -731,9 +732,9 @@ | ||
| 731 | 732 | */ |
| 732 | 733 | public static final function get_features_for_license( $plan ) { |
| 733 | 734 | switch ( $plan ) { |
| 734 | 735 | case 1: |
| 735 | - return array( 'import-wp', 'db-query' ); | |
| 736 | + return array( 'import-wp', 'db-query', 'import-wc-report' ); | |
| 736 | 737 | case 2: |
| 737 | 738 | return array( 'schedule-chart', 'chart-permissions' ); |
| 738 | 739 | } |
| 739 | 740 | } |