Skip to content

Commit bd77d78

Browse files
committed
Remove command duplicated
1 parent b652336 commit bd77d78

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

.ddev/commands/web/reset-wp-db

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/ppcp-compat/src/CompatModule.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ private function add_blueprint_export_test_page( ContainerInterface $c ): void {
618618
'ppcp-blueprint-export',
619619
function() use ($c) {
620620
// Handle export BEFORE any output
621-
if (isset($_POST['export_blueprint']) && check_admin_referer('ppcp_export_blueprint')) {
621+
if ( isset($_POST['export_blueprint']) && check_admin_referer('ppcp_export_blueprint') ) {
622622

623623
// Get all registered exporters
624624
$all_exporters = apply_filters('wooblueprint_exporters', array());
@@ -643,17 +643,17 @@ function() use ($c) {
643643
'steps' => $steps
644644
);
645645

646-
if (ob_get_level()) {
646+
if ( ob_get_level() ) {
647647
ob_end_clean();
648648
}
649649

650650
header('Content-Type: application/json');
651651
header('Content-Disposition: attachment; filename="paypal-blueprint-' . date('Y-m-d-His') . '.json"');
652-
echo wp_json_encode($blueprint, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
652+
echo wp_json_encode( $blueprint, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
653653
exit;
654654
}
655655

656-
// Only show UI if not exporting
656+
// Only show UI if not exporting.
657657
?>
658658
<div class="wrap">
659659
<h1>PayPal Settings Blueprint Export</h1>

0 commit comments

Comments
 (0)