PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | vendor/team-updraft/lib-central/central/host.php +2 -2 3.7.1 → 4.7.0 View file →
@@ -50,9 +50,9 @@
50 50 public function retrieve_show_message($key, $echo = false) {
51 51 if (empty($key) || !isset($this->translations[$key])) return '';
52 52
53 53 if ($echo) {
54 - echo $this->translations[$key];
54 + echo esc_html($this->translations[$key]);
55 55 return;
56 56 }
57 57
58 58 return $this->translations[$key];
@@ -142,9 +142,9 @@
142 142 }
143 143
144 144 if (is_string($results)) {
145 145 // A handful of legacy methods, and some which are directly the source for iframes, for which JSON is not appropriate.
146 - echo $results;
146 + echo $results; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We don't escape here to avoid double escaping and keep the HTML code needed by the receiver of this request.
147 147 } else {
148 148 echo json_encode($results);
149 149 }
150 150 die;