From a6c3052b0369c24d8679e463a10f562934f444fb Mon Sep 17 00:00:00 2001
From: "transifex-integration[bot]"
<43880903+transifex-integration[bot]@users.noreply.github.com>
Date: Wed, 29 Jan 2025 16:40:36 +0000
Subject: [PATCH 01/26] Translate languages/rocket.pot in fr_FR
100% translated source file: 'languages/rocket.pot'
on 'fr_FR'.
---
languages/rocket-fr_FR.po | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/languages/rocket-fr_FR.po b/languages/rocket-fr_FR.po
index 6ae77cf55e..1295fa320f 100644
--- a/languages/rocket-fr_FR.po
+++ b/languages/rocket-fr_FR.po
@@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: WP Rocket 3.18.1-alpha1\n"
+"Project-Id-Version: WP Rocket 3.18.1-beta1\n"
"Report-Msgid-Bugs-To: http://wp-rocket.me/\n"
-"POT-Creation-Date: 2025-01-29T08:41:11+00:00\n"
+"POT-Creation-Date: 2025-01-29T13:05:38+00:00\n"
"PO-Revision-Date: 2019-08-26 15:14+0000\n"
"Last-Translator: Romain • WP Rocket
' ); - // Append the script tag just before the last closing body tag especially in cases where there's an iframe. - $html = substr_replace( $html, $inline_script . $script_tag . '', $last_body_tag_position, 7 ); + + if ( false !== $last_body_tag_position ) { + // Append the script tag just before the last closing body tag especially in cases where there's an iframe. + $html = substr_replace( $html, $inline_script . $script_tag . '', $last_body_tag_position, 7 ); + } else { + // Append to the end of html if is not found. + $html .= $inline_script . $script_tag; + } return $html; } diff --git a/tests/Fixtures/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/no_closing_body_tag_input.html b/tests/Fixtures/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/no_closing_body_tag_input.html new file mode 100644 index 0000000000..ae1390a63d --- /dev/null +++ b/tests/Fixtures/inc/Engine/Common/PerformanceHints/Frontend/Subscriber/HTML/no_closing_body_tag_input.html @@ -0,0 +1,6 @@ + +
+
+ +