PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / trunk
MainWP Dashboard: Self-hosted WordPress Management for Agencies vtrunk
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
← All changes | class/class-mainwp-format.php +10 -3 5.3trunk View file →
@@ -6,8 +6,13 @@
6 6 */
7 7
8 8 namespace MainWP\Dashboard;
9 9
10 +// Exit if accessed directly.
11 +if ( ! defined( 'ABSPATH' ) ) {
12 + exit;
13 +}
14 +
10 15 /**
11 16 * Class MainWP_Format
12 17 *
13 18 * @package MainWP\Dashboard
@@ -229,10 +234,10 @@
229 234 $mail_send['body'] = 'Hi,' . "\r\n\r\n" .
230 235 ( ( ! empty( $title ) ) ? $title . "\r\n\r\n" : '' ) .
231 236 $body . "\r\n\r\n";
232 237 $mail_send['footer'] = 'MainWP: https://mainwp.com' . "\r\n" .
233 - 'Extensions: https://mainwp.com/mainwp-extensions/' . "\r\n" .
234 - 'Documentation: https://kb.mainwp.com/' . "\r\n" .
238 + 'Add-ons: https://mainwp.com/mainwp-add-ons/' . "\r\n" .
239 + 'Documentation: https://docs.mainwp.com/' . "\r\n" .
235 240 'Blog: https://mainwp.com/mainwp-blog/' . "\r\n" .
236 241 'Codex: https://mainwp.dev/' . "\r\n" .
237 242 'Support: https://mainwp.com/support/' . "\r\n\r\n" .
238 243 'Follow us on X: https://x.com/mymainwp' . "\r\n" .
@@ -238,8 +243,9 @@
238 243 'Follow us on X: https://x.com/mymainwp' . "\r\n" .
239 244 'Friend us on Facebook: https://www.facebook.com/mainwp' . "\r\n\r\n" .
240 245 "Copyright {$current_year} MainWP, All rights reserved.";
241 246 } else {
247 + // phpcs:disable PluginCheck.CodeAnalysis.Heredoc.NotAllowed -- Email HTML templates; refactoring 250+ lines of HTML to string concatenation carries high regression risk with no security benefit as content is not browser-rendered.
242 248 $mail_send['header'] = <<<EOT
243 249 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
244 250 <html>
245 251 <head>
@@ -542,9 +548,9 @@
542 548 color: #7fb100 ;
543 549 }
544 550 </style>
545 551 <div class="tpl-content-highlight" id="mainwp-links" style="color: #b8b8b8;font-family: Arial;font-size: 12px;line-height: 125%;text-align: center;">
546 - <a href="https://mainwp.com" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">MainWP</a> | <a href="https://mainwp.com/mainwp-extensions/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Extensions</a> | <a href="https://kb.mainwp.com/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration:none;text-transform: uppercase;">Documentation</a> | <a href="https://mainwp.com/mainwp-blog/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Blog</a> | <a href="http://codex.mainwp.com" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Codex</a> | <a href="https://mainwp.com/support/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Support</a></div>
552 + <a href="https://mainwp.com" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">MainWP</a> | <a href="https://mainwp.com/mainwp-add-ons/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Add-ons</a> | <a href="https://docs.mainwp.com/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration:none;text-transform: uppercase;">Documentation</a> | <a href="https://mainwp.com/mainwp-blog/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Blog</a> | <a href="https://mainwp.dev/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Codex</a> | <a href="https://mainwp.com/support/" target="_self" style="color: #7fb100;font-weight: normal;text-decoration: none;text-transform: uppercase;">Support</a></div>
547 553
548 554 <hr><br>
549 555 <a href="https://x.com/mymainwp" target="_blank" style="color: #336699;font-weight: normal;text-decoration: underline;">Follow us on X</a> | <a href="https://www.facebook.com/mainwp" style="color:#336699;font-weight: normal;text-decoration: underline;">Friend us on Facebook</a>
550 556 </td>
@@ -574,8 +580,9 @@
574 580 </center>
575 581 </body>
576 582 </html>
577 583 EOT;
584 + // phpcs:enable PluginCheck.CodeAnalysis.Heredoc.NotAllowed
578 585 }
579 586 $mail_send = apply_filters( 'mainwp_format_email', $mail_send );
580 587 return $mail_send['header'] . $mail_send['body'] . $mail_send['footer'];
581 588 }