File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments