PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/dynamics/page/plugin.php +11 -7 10.10.2 → 11.1.0 View file →
@@ -142,14 +142,16 @@
142 142
143 143 $rows = $this->getElements();
144 144 foreach ($rows as $i => $row) {
145 145 if (str_replace(['wp:core-embed', 'wp:shortcode'], '', $row->post_content) !== $row->post_content) {
146 - $rows[$i]->post_title = acym_tooltip(
147 - [
148 - 'hoveredText' => '<i class="acymicon-exclamation-triangle"></i>',
149 - 'textShownInTooltip' => acym_translation('ACYM_SPECIAL_CONTENT_WARNING'),
150 - ]
151 - ).$rows[$i]->post_title;
146 + ob_start();
147 + acym_tooltip(
148 + [
149 + 'hoveredText' => '<i class="acymicon-exclamation-triangle"></i>',
150 + 'textShownInTooltip' => acym_translation('ACYM_SPECIAL_CONTENT_WARNING'),
151 + ]
152 + );
153 + $rows[$i]->post_title = ob_get_clean().$rows[$i]->post_title;
152 154 }
153 155 }
154 156
155 157 $listingOptions = [
@@ -227,9 +229,9 @@
227 229 }
228 230
229 231 $customFields = [];
230 232
231 - $varFields['{readmore}'] = '<a class="acymailing_readmore_link" style="text-decoration:none;" target="_blank" href="'.$link.'"><span class="acymailing_readmore">'.acym_escape(
233 + $varFields['{readmore}'] = '<a class="acymailing_readmore_link" style="text-decoration:none;" target="_blank" href="'.$link.'"><span class="acymailing_readmore">'.esc_html(
232 234 acym_translation('ACYM_READ_MORE')
233 235 ).'</span></a>';
234 236 if (in_array('readmore', $tag->display)) $afterArticle .= $varFields['{readmore}'];
235 237
@@ -255,8 +257,9 @@
255 257 $languageCode = $this->config->get('multilingual_default', ACYM_DEFAULT_LANGUAGE);
256 258 } else {
257 259 $idDefaultLanguage = $this->getTranslationId($elementId, $translationTool, true);
258 260
261 + // We only translate inserted articles of the default language
259 262 if ($idDefaultLanguage !== $elementId) {
260 263 return $elementId;
261 264 }
262 265 }
@@ -269,8 +272,9 @@
269 272 if (!empty($translationId)) $elementId = $translationId;
270 273 }
271 274 } elseif ($translationTool === 'wpml') {
272 275 if (acym_isExtensionActive('sitepress-multilingual-cms/sitepress.php')) {
276 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WPML hook for integration.
273 277 $elementId = apply_filters('wpml_object_id', $elementId, 'post', true, $languageCode);
274 278 }
275 279 }
276 280