PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 14.9
Jetpack – WP Security, Backup, Speed, & Growth v14.9
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
← All changes | modules/notes.php +7 -3 13.9.214.9 View file →
@@ -1,8 +1,8 @@
1 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2 2 /**
3 3 * Module Name: Notifications
4 - * Module Description: Receive instant notifications of site comments and likes.
4 + * Module Description: Receive real‑time notifications about site activity across your devices.
5 5 * Sort Order: 13
6 6 * First Introduced: 1.9
7 7 * Requires Connection: Yes
8 8 * Requires User Connection: Yes
@@ -191,18 +191,22 @@
191 191
192 192 $third_party_cookie_check_iframe = '<span style="display:none;"><iframe class="jetpack-notes-cookie-check" src="https://widgets.wp.com/3rd-party-cookie-check/index.html"></iframe></span>';
193 193
194 194 $title = self::get_notes_markup();
195 +
196 + // The default fallback is `en_US`. Remove underscore if present, noting that lang codes can be more than three chars.
197 + $user_locale = strtolower( explode( '_', $user_locale, 2 )[0] );
198 +
195 199 $wp_admin_bar->add_menu(
196 200 array(
197 201 'id' => 'notes',
198 202 'title' => $title,
199 203 'meta' => array(
200 - 'html' => '<div id="wpnt-notes-panel2" class="intrinsic-ignore" style="display:none" lang="' . esc_attr( strtolower( substr( $user_locale, 0, 2 ) ) ) . '" dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">' . __( 'Notifications', 'jetpack' ) . '</span><span class="wpnt-notes-panel-link"></span></div></div>' . $third_party_cookie_check_iframe,
204 + 'html' => '<div id="wpnt-notes-panel2" class="intrinsic-ignore" style="display:none" lang="' . esc_attr( $user_locale ) . '" dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">' . __( 'Notifications', 'jetpack' ) . '</span><span class="wpnt-notes-panel-link"></span></div></div>' . $third_party_cookie_check_iframe,
201 205 'class' => 'menupop',
202 206 ),
203 207 'parent' => 'top-secondary',
204 - 'href' => 'https://wordpress.com/notifications',
208 + 'href' => 'https://wordpress.com/reader/notifications',
205 209 )
206 210 );
207 211 }
208 212