Skip to content

Commit

Permalink
[LNT] phpcs-wpcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ponsfrilus committed Jul 12, 2022
1 parent b580d22 commit 40148ae
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions wpforms-epfl-payonline.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,19 @@ function wpforms_epfl_payonline() {

add_action( 'wpforms_loaded', 'wpforms_epfl_payonline' );

add_action('wp_ajax_wpforms_tools_entries_export_step', function() {
// WPForms requires WP_Filesystem() to be of ->method === "direct".
// For some reason (likely pertaining to our symlink scheme),
// WordPress' autodetection fails.
add_filter('filesystem_method', function() {
return 'direct';
}, 10, 3);
});
add_action(
'wp_ajax_wpforms_tools_entries_export_step',
function() {
// WPForms requires WP_Filesystem() to be of ->method === "direct".
// For some reason (likely pertaining to our symlink scheme),
// WordPress' autodetection fails.
add_filter(
'filesystem_method',
function() {
return 'direct';
},
10,
3
);
}
);

0 comments on commit 40148ae

Please sign in to comment.