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