PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Services/UpgradeStream.php +9 -1 trunk2.6.1 View file →
@@ -97,9 +97,17 @@
97 97 if ( ! empty( $data['message'] ) ) {
98 98 plugin( 'logging' )->log( $data['message'] );
99 99 }
100 100
101 - parent::send_event( $event, $data );
101 + $data = \wp_json_encode( $data );
102 +
103 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
104 + echo "event: {$event}" . PHP_EOL;
105 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
106 + echo "data: {$data}" . PHP_EOL;
107 + echo PHP_EOL;
108 +
109 + $this->flush_buffers();
102 110 }
103 111
104 112 /**
105 113 * Start the upgrade process.