Merge pull request #32756 from woocommerce/fix/hook_removal_from_32460

Re-introduce woocommerce_product_csv_importer_check_import_file_path as deprecated
This commit is contained in:
Claudio Sanches 2022-04-26 18:23:26 -03:00 committed by GitHub
commit d880da05e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 43 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: This fixes a bug that was introduced in a PR targetting the same Woo version.

View File

@ -91,12 +91,6 @@ class WC_Product_CSV_Importer_Controller {
* @return bool * @return bool
*/ */
public static function is_file_valid_csv( $file, $check_path = true ) { public static function is_file_valid_csv( $file, $check_path = true ) {
/**
* Can be used to override the decision to check the import file path.
*
* @param bool $check_import_file_path If the import file path should be checked.
* @param string $file Path of the file to be checked.
*/
return wc_is_file_valid_csv( $file, $check_path ); return wc_is_file_valid_csv( $file, $check_path );
} }

View File

@ -58,6 +58,7 @@ class WC_Deprecated_Filter_Hooks extends WC_Deprecated_Hooks {
'woocommerce_credit_card_type_labels' => 'wocommerce_credit_card_type_labels', 'woocommerce_credit_card_type_labels' => 'wocommerce_credit_card_type_labels',
'woocommerce_settings_tabs_advanced' => 'woocommerce_settings_tabs_api', 'woocommerce_settings_tabs_advanced' => 'woocommerce_settings_tabs_api',
'woocommerce_settings_advanced' => 'woocommerce_settings_api', 'woocommerce_settings_advanced' => 'woocommerce_settings_api',
'woocommerce_csv_importer_check_import_file_path' => 'woocommerce_product_csv_importer_check_import_file_path',
); );
/** /**
@ -103,6 +104,7 @@ class WC_Deprecated_Filter_Hooks extends WC_Deprecated_Hooks {
'wocommerce_credit_card_type_labels' => '3.0.0', 'wocommerce_credit_card_type_labels' => '3.0.0',
'woocommerce_settings_tabs_api' => '3.4.0', 'woocommerce_settings_tabs_api' => '3.4.0',
'woocommerce_settings_api' => '3.4.0', 'woocommerce_settings_api' => '3.4.0',
'woocommerce_product_csv_importer_check_import_file_path' => '6.5.0',
); );
/** /**