Changeset 7628 for trunk/bp-notifications/bp-notifications-buddybar.php
- Timestamp:
- 11/30/2013 06:47:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-buddybar.php
r7521 r7628 25 25 } 26 26 27 echo '<li id="bp-adminbar-notifications-menu"><a href="' . bp_loggedin_user_domain() . '">';27 echo '<li id="bp-adminbar-notifications-menu"><a href="' . esc_url( bp_loggedin_user_domain() ) . '">'; 28 28 _e( 'Notifications', 'buddypress' ); 29 29 30 if ( $notifications = bp_ core_get_notifications_for_user( bp_loggedin_user_id() ) ) : ?>31 <span><?php echo count( $notifications )?></span>30 if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id() ) ) : ?> 31 <span><?php echo number_format_i18n( $notifications ); ?></span> 32 32 <?php 33 33 endif; … … 47 47 } else { ?> 48 48 49 <li><a href="<?php echo bp_loggedin_user_domain()?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>49 <li><a href="<?php echo esc_url( bp_loggedin_user_domain() ); ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li> 50 50 51 51 <?php
Note: See TracChangeset
for help on using the changeset viewer.