PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 4.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v4.1
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 +8 -13 5.0.3.24.1 View file →
@@ -29,11 +29,9 @@
29 29 * Method get_update_plugins_items().
30 30 *
31 31 * Get plugins update.
32 32 *
33 - * @return array $update_items Plugins update items.
34 - *
35 - * @uses \MainWP\Dashboard\MainWP_Utility::array_merge()
33 + * @return string $update_items Plugins update items.
36 34 */
37 35 public static function get_update_plugins_items() {
38 36
39 37 $pluginsNewUpdate = get_option( 'mainwp_updatescheck_mail_update_plugins_new' );
@@ -65,11 +63,9 @@
65 63 * Method get_update_themes_items().
66 64 *
67 65 * Get themes update items to email.
68 66 *
69 - * @return array $update_items Update themes.
70 - *
71 - * @uses \MainWP\Dashboard\MainWP_Utility::array_merge()
67 + * @return string $update_items Update themes.
72 68 */
73 69 public static function get_update_themes_items() {
74 70
75 71 $themesNewUpdate = get_option( 'mainwp_updatescheck_mail_update_themes_new' );
@@ -103,10 +99,8 @@
103 99 *
104 100 * Get WP update to email.
105 101 *
106 102 * @return array $update_items WP update items.
107 - *
108 - * @uses \MainWP\Dashboard\MainWP_Utility::array_merge()
109 103 */
110 104 public static function get_update_wp_items() {
111 105
112 106 $coreNewUpdate = get_option( 'mainwp_updatescheck_mail_update_core_new' );
@@ -147,13 +141,13 @@
147 141 */
148 142 public static function get_site_updates_items( $what, $sites_ids = false ) {
149 143
150 144 $items = array();
151 - if ( 'plugin' === $what ) {
145 + if ( 'plugin' == $what ) {
152 146 $items = self::get_update_plugins_items();
153 - } elseif ( 'theme' === $what ) {
147 + } elseif ( 'theme' == $what ) {
154 148 $items = self::get_update_themes_items();
155 - } elseif ( 'wpcore' === $what ) {
149 + } elseif ( 'wpcore' == $what ) {
156 150 $items = self::get_update_wp_items();
157 151 }
158 152
159 153 $filters = array();
@@ -181,9 +175,9 @@
181 175 * @param bool $plain_text text format.
182 176 *
183 177 * @return string Formatted content
184 178 */
185 - public static function format_email( $to_email = null, $body = '', $title = '', $plain_text = false ) {
179 + public static function format_email( $to_email = null, $body, $title = '', $plain_text = false ) {
186 180
187 181 $current_year = gmdate( 'Y' );
188 182 if ( $plain_text ) {
189 183 $mail_send['header'] = '';
@@ -430,9 +424,9 @@
430 424 <td class="headerContent" style="border-collapse: collapse;color: #202020;font-family: Arial;font-size: 34px;font-weight: bold;line-height: 100%;padding: 0;text-align: center;vertical-align: middle;">
431 425
432 426 <!-- // Begin: Standard Header Image \\ -->
433 427
434 - <a href="https://mainwp.com" target="_blank" style="color: #446200;font-size:45px;font-weight: normal;text-decoration: underline;">MainWP</a>
428 + <a href="https://mainwp.com" target="_blank" style="color: #446200;font-weight: normal;text-decoration: underline;"><img src="https://gallery.mailchimp.com/f3ac05fd307648a9c6bbe320a/images/header.png" alt="MainWP" border="0" style="border: px none;border-color: ;border-style: none;border-width: px;height: 130px;width: 600px;margin: 0;padding: 0;line-height: 100%;outline: none;text-decoration: none;" width="600" height="130"></a>
435 429
436 430 <!-- // End: Standard Header Image \\ -->
437 431
438 432 </td>
@@ -539,5 +533,6 @@
539 533 }
540 534 $mail_send = apply_filters( 'mainwp_format_email', $mail_send );
541 535 return $mail_send['header'] . $mail_send['body'] . $mail_send['footer'];
542 536 }
537 +
543 538 }