← All changes
|
includes/Admin/Importer/Parsers/WXR_Parser_Regex.php
+3
-0
4.5.2
→
4.9.3
View file →
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- inherited WP Importer hook contract preserved for compat with external listeners. | |
| 2 | 3 | namespace WPDeveloper\BetterDocs\Admin\Importer\Parsers; |
| 3 | 4 | |
| 4 | 5 | use WP_Error; |
| 5 | 6 | |
| @@ -353,8 +354,9 @@ | ||
| 353 | 354 | if ( $this->has_gzip ) { |
| 354 | 355 | return gzopen( $filename, $mode ); |
| 355 | 356 | } |
| 356 | 357 | |
| 358 | + // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen -- streaming read; WP_Filesystem cannot replace this. | |
| 357 | 359 | return fopen( $filename, $mode ); |
| 358 | 360 | } |
| 359 | 361 | |
| 360 | 362 | private function feof( $fp ) { |
| @@ -377,8 +379,9 @@ | ||
| 377 | 379 | if ( $this->has_gzip ) { |
| 378 | 380 | return gzclose( $fp ); |
| 379 | 381 | } |
| 380 | 382 | |
| 383 | + // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fclose -- streaming close; WP_Filesystem cannot replace this. | |
| 381 | 384 | return fclose( $fp ); |
| 382 | 385 | } |
| 383 | 386 | |
| 384 | 387 | public function __construct() { |