Changeset 13822
- Timestamp:
- 04/29/2024 06:50:42 PM (21 months ago)
- Location:
- trunk/src/bp-templates/bp-legacy
- Files:
-
- 59 edited
-
buddypress-functions.php (modified) (31 diffs)
-
buddypress/activity/activity-loop.php (modified) (2 diffs)
-
buddypress/activity/comment.php (modified) (3 diffs)
-
buddypress/activity/entry.php (modified) (4 diffs)
-
buddypress/activity/index.php (modified) (6 diffs)
-
buddypress/activity/post-form.php (modified) (3 diffs)
-
buddypress/assets/_attachments/avatars/index.php (modified) (1 diff)
-
buddypress/assets/_attachments/cover-images/index.php (modified) (1 diff)
-
buddypress/assets/_attachments/uploader.php (modified) (1 diff)
-
buddypress/assets/emails/single-bp-email.php (modified) (2 diffs)
-
buddypress/assets/embeds/header-activity.php (modified) (1 diff)
-
buddypress/blogs/blogs-loop.php (modified) (1 diff)
-
buddypress/blogs/confirm.php (modified) (1 diff)
-
buddypress/blogs/index.php (modified) (4 diffs)
-
buddypress/groups/create.php (modified) (16 diffs)
-
buddypress/groups/groups-loop.php (modified) (2 diffs)
-
buddypress/groups/index.php (modified) (4 diffs)
-
buddypress/groups/single/activity.php (modified) (2 diffs)
-
buddypress/groups/single/admin/delete-group.php (modified) (2 diffs)
-
buddypress/groups/single/admin/edit-details.php (modified) (3 diffs)
-
buddypress/groups/single/admin/group-avatar.php (modified) (3 diffs)
-
buddypress/groups/single/admin/group-cover-image.php (modified) (2 diffs)
-
buddypress/groups/single/admin/group-settings.php (modified) (4 diffs)
-
buddypress/groups/single/admin/manage-members.php (modified) (11 diffs)
-
buddypress/groups/single/admin/membership-requests.php (modified) (1 diff)
-
buddypress/groups/single/cover-image-header.php (modified) (3 diffs)
-
buddypress/groups/single/group-header.php (modified) (3 diffs)
-
buddypress/groups/single/invites-loop.php (modified) (2 diffs)
-
buddypress/groups/single/members.php (modified) (1 diff)
-
buddypress/groups/single/requests-loop.php (modified) (1 diff)
-
buddypress/groups/single/send-invites.php (modified) (3 diffs)
-
buddypress/members/activate.php (modified) (2 diffs)
-
buddypress/members/index.php (modified) (3 diffs)
-
buddypress/members/members-loop.php (modified) (1 diff)
-
buddypress/members/register.php (modified) (14 diffs)
-
buddypress/members/single/activity.php (modified) (1 diff)
-
buddypress/members/single/blogs.php (modified) (1 diff)
-
buddypress/members/single/friends.php (modified) (2 diffs)
-
buddypress/members/single/friends/requests.php (modified) (3 diffs)
-
buddypress/members/single/groups/invites.php (modified) (3 diffs)
-
buddypress/members/single/invitations/send-invites.php (modified) (1 diff)
-
buddypress/members/single/messages.php (modified) (2 diffs)
-
buddypress/members/single/messages/messages-loop.php (modified) (8 diffs)
-
buddypress/members/single/messages/notices-loop.php (modified) (2 diffs)
-
buddypress/members/single/messages/single.php (modified) (5 diffs)
-
buddypress/members/single/notifications/feedback-no-notifications.php (modified) (2 diffs)
-
buddypress/members/single/notifications/notifications-loop.php (modified) (2 diffs)
-
buddypress/members/single/notifications/read.php (modified) (1 diff)
-
buddypress/members/single/notifications/unread.php (modified) (1 diff)
-
buddypress/members/single/profile/change-avatar.php (modified) (6 diffs)
-
buddypress/members/single/profile/change-cover-image.php (modified) (2 diffs)
-
buddypress/members/single/profile/edit.php (modified) (3 diffs)
-
buddypress/members/single/profile/profile-wp.php (modified) (7 diffs)
-
buddypress/members/single/settings/capabilities.php (modified) (1 diff)
-
buddypress/members/single/settings/data.php (modified) (4 diffs)
-
buddypress/members/single/settings/delete-account.php (modified) (2 diffs)
-
buddypress/members/single/settings/general.php (modified) (2 diffs)
-
buddypress/members/single/settings/notifications.php (modified) (1 diff)
-
buddypress/members/single/settings/profile.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r13709 r13822 512 512 $class = did_action( 'admin_bar_menu' ) ? 'admin-bar-on' : 'admin-bar-off'; 513 513 514 echo '<div id="sitewide-notice" class="' . $class. '">';514 echo '<div id="sitewide-notice" class="' . esc_attr( $class ) . '">'; 515 515 bp_message_get_notices(); 516 516 echo '</div>'; … … 985 985 check_admin_referer( 'post_update', '_wpnonce_post_update' ); 986 986 987 if ( ! is_user_logged_in() ) 987 if ( ! is_user_logged_in() ) { 988 988 exit( '-1' ); 989 990 if ( empty( $_POST['content'] ) ) 991 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' ); 989 } 990 991 if ( empty( $_POST['content'] ) ) { 992 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html__( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' ); 993 } 992 994 993 995 $activity_id = 0; … … 1025 1027 1026 1028 if ( false === $activity_id ) { 1027 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . __( 'There was a problem posting your update. Please try again.', 'buddypress' ) . '</p></div>' );1029 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html__( 'There was a problem posting your update. Please try again.', 'buddypress' ) . '</p></div>' ); 1028 1030 } elseif ( is_wp_error( $activity_id ) && $activity_id->get_error_code() ) { 1029 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . $activity_id->get_error_message() . '</p></div>' );1031 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $activity_id->get_error_message() ) . '</p></div>' ); 1030 1032 } 1031 1033 … … 1146 1148 check_admin_referer( 'bp_activity_delete_link' ); 1147 1149 1148 if ( ! is_user_logged_in() ) 1150 if ( ! is_user_logged_in() ) { 1149 1151 exit( '-1' ); 1150 1151 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) 1152 } 1153 1154 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) { 1152 1155 exit( '-1' ); 1156 } 1153 1157 1154 1158 $activity = new BP_Activity_Activity( (int) $_POST['id'] ); 1155 1159 1156 1160 // Check access. 1157 if ( ! bp_activity_user_can_delete( $activity ) ) 1161 if ( ! bp_activity_user_can_delete( $activity ) ) { 1158 1162 exit( '-1' ); 1163 } 1159 1164 1160 1165 /** This action is documented in bp-activity/bp-activity-actions.php */ 1161 1166 do_action( 'bp_activity_before_action_delete_activity', $activity->id, $activity->user_id ); 1162 1167 1163 if ( ! bp_activity_delete( array( 'id' => $activity->id, 'user_id' => $activity->user_id ) ) ) 1164 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' ); 1168 if ( ! bp_activity_delete( array( 'id' => $activity->id, 'user_id' => $activity->user_id ) ) ) { 1169 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html__( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' ); 1170 } 1165 1171 1166 1172 /** This action is documented in bp-activity/bp-activity-actions.php */ … … 1195 1201 1196 1202 // Check access. 1197 if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() ) 1203 if ( ! bp_current_user_can( 'bp_moderate' ) && $comment->user_id != bp_loggedin_user_id() ) { 1198 1204 exit( '-1' ); 1205 } 1199 1206 1200 1207 /** This action is documented in bp-activity/bp-activity-actions.php */ 1201 1208 do_action( 'bp_activity_before_action_delete_activity', $_POST['id'], $comment->user_id ); 1202 1209 1203 if ( ! bp_activity_delete_comment( $comment->item_id, $comment->id ) ) 1204 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . __( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' ); 1210 if ( ! bp_activity_delete_comment( $comment->item_id, $comment->id ) ) { 1211 exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html__( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' ); 1212 } 1205 1213 1206 1214 /** This action is documented in bp-activity/bp-activity-actions.php */ … … 1224 1232 1225 1233 // Check that user is logged in, Activity Streams are enabled, and Akismet is present. 1226 if ( ! is_user_logged_in() || ! bp_is_active( 'activity' ) || empty( $bp->activity->akismet ) ) 1234 if ( ! is_user_logged_in() || ! bp_is_active( 'activity' ) || empty( $bp->activity->akismet ) ) { 1227 1235 exit( '-1' ); 1236 } 1228 1237 1229 1238 // Check an item ID was passed. 1230 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) 1239 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) ) { 1231 1240 exit( '-1' ); 1241 } 1232 1242 1233 1243 // Is the current user allowed to spam items? 1234 if ( ! bp_activity_user_can_mark_spam() ) 1244 if ( ! bp_activity_user_can_mark_spam() ) { 1235 1245 exit( '-1' ); 1246 } 1236 1247 1237 1248 // Load up the activity item. 1238 1249 $activity = new BP_Activity_Activity( (int) $_POST['id'] ); 1239 if ( empty( $activity->component ) ) 1250 if ( empty( $activity->component ) ) { 1240 1251 exit( '-1' ); 1252 } 1241 1253 1242 1254 // Check nonce. … … 1346 1358 $activity = ! empty( $activity_array['activities'][0] ) ? $activity_array['activities'][0] : false; 1347 1359 1348 if ( empty( $activity ) ) 1360 if ( empty( $activity ) ) { 1349 1361 exit; // @todo: error? 1362 } 1350 1363 1351 1364 /** … … 1364 1377 $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $activity->content, &$activity ) ); 1365 1378 1379 // phpcs:ignore WordPress.Security.EscapeOutput 1366 1380 exit( $content ); 1367 1381 } … … 1381 1395 check_ajax_referer( 'groups_invite_uninvite_user' ); 1382 1396 1383 if ( ! $_POST['friend_id'] || ! $_POST['friend_action'] || ! $_POST['group_id'] ) 1384 return; 1385 1386 if ( ! bp_groups_user_can_send_invites( $_POST['group_id'] ) ) 1387 return; 1397 if ( ! $_POST['friend_id'] || ! $_POST['friend_action'] || ! $_POST['group_id'] ) { 1398 return; 1399 } 1400 1401 if ( ! bp_groups_user_can_send_invites( $_POST['group_id'] ) ) { 1402 return; 1403 } 1388 1404 1389 1405 $group_id = (int) $_POST['group_id']; … … 1424 1440 } 1425 1441 1442 // phpcs:disable WordPress.Security.EscapeOutput 1426 1443 echo '<li id="uid-' . esc_attr( $user->id ) . '">'; 1427 1444 echo $user->avatar_thumb; … … 1429 1446 echo '<span class="activity">' . esc_attr( $user->last_active ) . '</span>'; 1430 1447 echo '<div class="action"> 1431 <a class="button remove" href="' . wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' .__( 'Remove Invite', 'buddypress' ) . '</a>1448 <a class="button remove" href="' . esc_url( wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ) ) . '" id="uid-' . esc_attr( $user->id ) . '">' . esc_html__( 'Remove Invite', 'buddypress' ) . '</a> 1432 1449 </div>'; 1433 1450 1434 1451 if ( 'is_pending' == $user_status ) { 1435 1452 /* translators: %s: user link */ 1436 echo '<p class="description">' . sprintf( __( '%s has previously requested to join this group. Sending an invitation will automatically add the member to the group.', 'buddypress' ), $user->user_link ) . '</p>';1453 echo '<p class="description">' . sprintf( esc_html__( '%s has previously requested to join this group. Sending an invitation will automatically add the member to the group.', 'buddypress' ), $user->user_link ) . '</p>'; 1437 1454 } 1438 1455 1439 1456 echo '</li>'; 1457 // phpcs:enable 1440 1458 exit; 1441 1459 … … 1476 1494 $user = get_user_by( 'id', $friend_id ); 1477 1495 if ( ! $user ) { 1478 die( __( 'No member found by that ID.', 'buddypress' ) );1496 die( esc_html__( 'No member found by that ID.', 'buddypress' ) ); 1479 1497 } 1480 1498 … … 1484 1502 1485 1503 if ( ! friends_remove_friend( bp_loggedin_user_id(), $friend_id ) ) { 1486 e cho __( 'Friendship could not be canceled.', 'buddypress' );1504 esc_html_e( 'Friendship could not be canceled.', 'buddypress' ); 1487 1505 } else { 1488 1506 $url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_friends_slug(), 'add-friend', array( $friend_id ) ) ) ); 1489 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="friendship-button not_friends add" rel="add" href="' . wp_nonce_url( $url, 'friends_add_friend' ) . '">' .__( 'Add Friend', 'buddypress' ) . '</a>';1507 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="friendship-button not_friends add" rel="add" href="' . esc_url( wp_nonce_url( $url, 'friends_add_friend' ) ) . '">' . esc_html__( 'Add Friend', 'buddypress' ) . '</a>'; 1490 1508 } 1491 1509 … … 1495 1513 1496 1514 if ( ! friends_add_friend( bp_loggedin_user_id(), $friend_id ) ) { 1497 e cho __(' Friendship could not be requested.', 'buddypress' );1515 esc_html_e(' Friendship could not be requested.', 'buddypress' ); 1498 1516 } else { 1499 1517 $url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_friends_slug(), 'requests', array( 'cancel', $friend_id ) ) ) ); 1500 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="remove friendship-button pending_friend requested" rel="remove" href="' . wp_nonce_url( $url, 'friends_withdraw_friendship' ) . '" class="requested">' .__( 'Cancel Friendship Request', 'buddypress' ) . '</a>';1518 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="remove friendship-button pending_friend requested" rel="remove" href="' . esc_url( wp_nonce_url( $url, 'friends_withdraw_friendship' ) ) . '" class="requested">' . esc_html__( 'Cancel Friendship Request', 'buddypress' ) . '</a>'; 1501 1519 } 1502 1520 … … 1507 1525 if ( friends_withdraw_friendship( bp_loggedin_user_id(), $friend_id ) ) { 1508 1526 $url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_friends_slug(), 'add-friend', array( $friend_id ) ) ) ); 1509 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="friendship-button not_friends add" rel="add" href="' . wp_nonce_url( $url, 'friends_add_friend' ) . '">' .__( 'Add Friend', 'buddypress' ) . '</a>';1527 echo '<a id="friend-' . esc_attr( $friend_id ) . '" class="friendship-button not_friends add" rel="add" href="' . esc_url( wp_nonce_url( $url, 'friends_add_friend' ) ) . '">' . esc_html__( 'Add Friend', 'buddypress' ) . '</a>'; 1510 1528 } else { 1511 e cho __("Friendship request could not be cancelled.", 'buddypress');1529 esc_html_e("Friendship request could not be cancelled.", 'buddypress'); 1512 1530 } 1513 1531 1514 1532 // Request already pending. 1515 1533 } else { 1516 e cho __( 'Request Pending', 'buddypress' );1534 esc_html_e( 'Request Pending', 'buddypress' ); 1517 1535 } 1518 1536 … … 1535 1553 1536 1554 if ( ! friends_accept_friendship( (int) $_POST['id'] ) ) 1537 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>';1555 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>'; 1538 1556 1539 1557 exit; … … 1555 1573 1556 1574 if ( ! friends_reject_friendship( (int) $_POST['id'] ) ) 1557 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>';1575 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>'; 1558 1576 1559 1577 exit; … … 1610 1628 1611 1629 if ( ! groups_join_group( $group->id ) ) { 1612 _e( 'Error joining group', 'buddypress' );1630 esc_html_e( 'Error joining group', 'buddypress' ); 1613 1631 } else { 1614 1632 $leave_url = wp_nonce_url( … … 1619 1637 'groups_leave_group' 1620 1638 ); 1621 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . esc_url( $leave_url ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';1639 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . esc_url( $leave_url ) . '">' . esc_html__( 'Leave Group', 'buddypress' ) . '</a>'; 1622 1640 } 1623 1641 break; … … 1631 1649 1632 1650 if ( ! groups_accept_invite( bp_loggedin_user_id(), $group->id ) ) { 1633 _e( 'Error requesting membership', 'buddypress' );1651 esc_html_e( 'Error requesting membership', 'buddypress' ); 1634 1652 } else { 1635 1653 $leave_url = wp_nonce_url( … … 1640 1658 'groups_leave_group' 1641 1659 ); 1642 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . esc_url( $leave_url ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';1660 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . esc_url( $leave_url ) . '">' . esc_html__( 'Leave Group', 'buddypress' ) . '</a>'; 1643 1661 } 1644 1662 break; … … 1648 1666 1649 1667 if ( ! groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $group->id ] ) ) { 1650 _e( 'Error requesting membership', 'buddypress' );1668 esc_html_e( 'Error requesting membership', 'buddypress' ); 1651 1669 } else { 1652 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" href="' . esc_url( bp_get_group_url( $group ) ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>';1670 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" href="' . esc_url( bp_get_group_url( $group ) ) . '">' . esc_html__( 'Request Sent', 'buddypress' ) . '</a>'; 1653 1671 } 1654 1672 break; … … 1658 1676 1659 1677 if ( ! groups_leave_group( $group->id ) ) { 1660 _e( 'Error leaving group', 'buddypress' );1678 esc_html_e( 'Error leaving group', 'buddypress' ); 1661 1679 } elseif ( 'public' === $group->status ) { 1662 1680 $join_url = wp_nonce_url( … … 1667 1685 'groups_join_group' 1668 1686 ); 1669 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group" rel="join" href="' . esc_url( $join_url ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';1687 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group" rel="join" href="' . esc_url( $join_url ) . '">' . esc_html__( 'Join Group', 'buddypress' ) . '</a>'; 1670 1688 } else { 1671 1689 $request_url = wp_nonce_url( … … 1676 1694 'groups_request_membership' 1677 1695 ); 1678 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" href="' . esc_url( $request_url ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';1696 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" href="' . esc_url( $request_url ) . '">' . esc_html__( 'Request Membership', 'buddypress' ) . '</a>'; 1679 1697 } 1680 1698 break; … … 1699 1717 1700 1718 if ( ! $nonce_check || ! isset( $_POST['notice_id'] ) ) { 1701 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem closing the notice.', 'buddypress' ) . '</p></div>';1719 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem closing the notice.', 'buddypress' ) . '</p></div>'; 1702 1720 1703 1721 } else { … … 1726 1744 // Cannot respond to a thread you're not already a recipient on. 1727 1745 if ( ! bp_current_user_can( 'bp_moderate' ) && ( ! messages_is_valid_thread( $thread_id ) || ! messages_check_thread_access( $thread_id ) ) ) { 1728 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>';1746 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>'; 1729 1747 die; 1730 1748 } … … 1732 1750 $result = messages_new_message( array( 'thread_id' => $thread_id, 'content' => $_REQUEST['content'] ) ); 1733 1751 1734 if ( ! empty( $result ) ) {1752 if ( ! empty( $result ) ) { 1735 1753 1736 1754 // Pretend we're in the message loop. … … 1766 1784 1767 1785 } else { 1768 echo "-1<div id='message' class='error'><p>" . __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>';1786 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>'; 1769 1787 } 1770 1788 … … 2097 2115 if ( $message ) { 2098 2116 // Surround the message with `<p>` tags. 2099 echo wpautop( $message ); 2117 $message = wpautop( $message ); 2118 2119 echo wp_kses( 2120 $message, 2121 array( 2122 'p' => true, 2123 'a' => array( 2124 'href' => true, 2125 ), 2126 ) 2127 ); 2100 2128 } 2101 2129 } … … 2114 2142 if ( $message ) { 2115 2143 // Surround the message with `<p>` tags. 2116 echo wpautop( $message ); 2144 $message = wpautop( $message ); 2145 2146 echo wp_kses( 2147 $message, 2148 array( 2149 'p' => true, 2150 'a' => array( 2151 'href' => true, 2152 ), 2153 ) 2154 ); 2117 2155 } 2118 2156 } -
trunk/src/bp-templates/bp-legacy/buddypress/activity/activity-loop.php
r12082 r13822 32 32 33 33 <li class="load-more"> 34 <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>34 <a href="<?php bp_activity_load_more_link() ?>"><?php esc_html_e( 'Load More', 'buddypress' ); ?></a> 35 35 </li> 36 36 … … 46 46 47 47 <div id="message" class="info"> 48 <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>48 <p><?php esc_html_e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> 49 49 </div> 50 50 -
trunk/src/bp-templates/bp-legacy/buddypress/activity/comment.php
r12518 r13822 27 27 <div class="acomment-meta"> 28 28 <?php 29 /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: ISO8601 timestamp, 5: activity relative timestamp */ 30 printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since" data-livestamp="%4$s">%5$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_comment_permalink(), bp_core_get_iso8601_date( bp_get_activity_comment_date_recorded() ), bp_get_activity_comment_date_recorded() ); 29 /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: ISO8601 timestamp, 5: activity relative timestamp */ 30 printf( 31 esc_html__( '%1$s replied %2$s', 'buddypress' ), 32 '<a href="' . esc_url( bp_get_activity_comment_user_link() ) . '">' . esc_html( bp_get_activity_comment_name() ) . '</a>', 33 '<a href="' . esc_url( bp_get_activity_comment_permalink() ) . '" class="activity-time-since"><span class="time-since" data-livestamp="' . esc_attr( bp_core_get_iso8601_date( bp_get_activity_comment_date_recorded() ) ) . '">' . esc_html( bp_get_activity_comment_date_recorded() ). '</span></a>' 34 ); 31 35 ?> 32 36 </div> … … 38 42 <?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?> 39 43 40 <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>44 <a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php esc_html_e( 'Reply', 'buddypress' ); ?></a> 41 45 42 46 <?php endif; ?> … … 44 48 <?php if ( bp_activity_user_can_delete() ) : ?> 45 49 46 <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'buddypress' ); ?></a>50 <a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php esc_html_e( 'Delete', 'buddypress' ); ?></a> 47 51 48 52 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/activity/entry.php
r13520 r13822 59 59 <?php if ( bp_get_activity_type() == 'activity_comment' ) : ?> 60 60 61 <a href="<?php bp_activity_thread_permalink(); ?>" class="button view bp-secondary-action"><?php _e( 'View Conversation', 'buddypress' ); ?></a>61 <a href="<?php bp_activity_thread_permalink(); ?>" class="button view bp-secondary-action"><?php esc_html_e( 'View Conversation', 'buddypress' ); ?></a> 62 62 63 63 <?php endif; ?> … … 70 70 <?php 71 71 /* translators: %s: number of activity comments */ 72 printf( __( 'Comment %s', 'buddypress' ), '<span>' . bp_activity_get_comment_count() . '</span>' );72 printf( esc_html__( 'Comment %s', 'buddypress' ), '<span>' . esc_html( bp_activity_get_comment_count() ) . '</span>' ); 73 73 ?> 74 74 </a> … … 80 80 <?php if ( !bp_get_activity_is_favorite() ) : ?> 81 81 82 <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action"><?php _e( 'Favorite', 'buddypress' ); ?></a>82 <a href="<?php bp_activity_favorite_link(); ?>" class="button fav bp-secondary-action"><?php esc_html_e( 'Favorite', 'buddypress' ); ?></a> 83 83 84 84 <?php else : ?> 85 85 86 <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action"><?php _e( 'Remove Favorite', 'buddypress' ); ?></a>86 <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action"><?php esc_html_e( 'Remove Favorite', 'buddypress' ); ?></a> 87 87 88 88 <?php endif; ?> … … 128 128 <div class="ac-reply-content"> 129 129 <div class="ac-textarea"> 130 <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"><?php 131 /* translators: accessibility text */ 132 _e( 'Comment', 'buddypress' ); 133 ?></label> 130 <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"> 131 <?php 132 /* translators: accessibility text */ 133 esc_html_e( 'Comment', 'buddypress' ); 134 ?> 135 </label> 134 136 <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea> 135 137 </div> -
trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php
r13442 r13822 61 61 <?php 62 62 /* translators: %s: number of members */ 63 printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' );63 printf( esc_html__( 'All Members %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_member_count() ) . '</span>' ); 64 64 ?> 65 65 </a> … … 85 85 <?php 86 86 /* translators: %s: number of friends */ 87 printf( esc_html__( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' );87 printf( esc_html__( 'My Friends %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_friend_count( bp_loggedin_user_id() ) ) . '</span>' ); 88 88 ?> 89 89 </a> … … 111 111 <?php 112 112 /* translators: %s: current user groups count */ 113 printf( esc_html__( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' );113 printf( esc_html__( 'My Groups %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); 114 114 ?> 115 115 </a> … … 135 135 <?php 136 136 /* translators: %s: number of favorites */ 137 printf( esc_html__( 'My Favorites %s', 'buddypress' ), '<span>' . bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) . '</span>' );137 printf( esc_html__( 'My Favorites %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); 138 138 ?> 139 139 </a> … … 162 162 <?php 163 163 /* translators: %s: new mentions count */ 164 printf( esc_html( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) );164 printf( esc_html( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), esc_html( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ) ); 165 165 ?> 166 166 </span> … … 205 205 206 206 <li id="activity-filter-select" class="last"> 207 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>207 <label for="activity-filter-by"><?php esc_html_e( 'Show:', 'buddypress' ); ?></label> 208 208 <select id="activity-filter-by"> 209 <option value="-1"><?php _e( '— Everything —', 'buddypress' ); ?></option>209 <option value="-1"><?php esc_html_e( '— Everything —', 'buddypress' ); ?></option> 210 210 211 211 <?php bp_activity_show_filters(); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/activity/post-form.php
r13442 r13822 31 31 if ( bp_is_group() ) { 32 32 /* translators: 1: group name. 2: member name. */ 33 printf( __( 'What\'s new in %1$s, %2$s?', 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); 33 printf( 34 esc_html__( 'What\'s new in %1$s, %2$s?', 'buddypress' ), 35 esc_html( bp_get_group_name() ), 36 esc_html( bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ) 37 ); 34 38 } else { 35 39 /* translators: %s: member name */ 36 printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); 40 printf( 41 esc_html__( "What's new, %s?", 'buddypress' ), 42 esc_html( bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ) 43 ); 37 44 } 38 45 ?> … … 41 48 <div id="whats-new-content"> 42 49 <div id="whats-new-textarea"> 43 <label for="whats-new" class="bp-screen-reader-text"><?php 44 /* translators: accessibility text */ 45 _e( 'Post what\'s new', 'buddypress' ); 46 ?></label> 50 <label for="whats-new" class="bp-screen-reader-text"> 51 <?php 52 /* translators: accessibility text */ 53 esc_html_e( 'Post what\'s new', 'buddypress' ); 54 ?> 55 </label> 47 56 <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" 48 57 <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> … … 59 68 <div id="whats-new-post-in-box"> 60 69 61 <?php _e( 'Post in', 'buddypress' ); ?>:70 <?php esc_html_e( 'Post in', 'buddypress' ); ?>: 62 71 63 <label for="whats-new-post-in" class="bp-screen-reader-text"><?php 64 /* translators: accessibility text */ 65 _e( 'Post in', 'buddypress' ); 66 ?></label> 72 <label for="whats-new-post-in" class="bp-screen-reader-text"> 73 <?php 74 /* translators: accessibility text */ 75 esc_html_e( 'Post in', 'buddypress' ); 76 ?> 77 </label> 67 78 <select id="whats-new-post-in" name="whats-new-post-in"> 68 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>79 <option selected="selected" value="0"><?php esc_html_e( 'My Profile', 'buddypress' ); ?></option> 69 80 70 81 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0&update_meta_cache=0' ) ) : -
trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php
r13179 r13822 38 38 <script id="tmpl-bp-avatar-delete" type="text/html"> 39 39 <# if ( 'user' === data.object ) { #> 40 <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p>40 <p><?php esc_html_e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 41 41 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 42 42 <# } else if ( 'group' === data.object ) { #> 43 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>43 <p><?php esc_html_e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p> 44 44 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p> 45 45 <# } else { #> -
trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/cover-images/index.php
r12082 r13822 25 25 <script id="tmpl-bp-cover-image-delete" type="text/html"> 26 26 <# if ( 'user' === data.object ) { #> 27 <p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p>27 <p><?php esc_html_e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p> 28 28 <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></a></p> 29 29 <# } else if ( 'group' === data.object ) { #> 30 <p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>30 <p><?php esc_html_e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p> 31 31 <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></a></p> 32 32 <# } else { #> -
trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php
r12082 r13822 23 23 <div class="drag-drop-inside"> 24 24 <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p> 25 <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>25 <p><?php echo esc_html_x( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p> 26 26 <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php 27 27 /* translators: accessibility text */ -
trunk/src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php
r13692 r13822 166 166 do_action( 'bp_before_email_header' ); 167 167 168 echo bp_get_option( 'blogname');168 echo esc_html( bp_get_option( 'blogname' ) ); 169 169 170 170 /** … … 216 216 ?> 217 217 218 <span class="footer_text"><?php echo nl2br( stripslashes( $settings['footer_text']) ); ?></span>218 <span class="footer_text"><?php echo nl2br( esc_html( stripslashes( $settings['footer_text'] ) ) ); ?></span> 219 219 <br><br> 220 <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php _ex( 'unsubscribe', 'email', 'buddypress' ); ?></a>220 <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php echo esc_html_x( 'unsubscribe', 'email', 'buddypress' ); ?></a> 221 221 222 222 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/assets/embeds/header-activity.php
r12082 r13822 27 27 <?php endif; ?> 28 28 29 <span class="bp-embed-timestamp"><a href="<?php bp_activity_thread_permalink(); ?>"><?php echo date_i18n( get_option( 'time_format' ) . ' - ' . get_option( 'date_format' ), strtotime( bp_get_activity_date_recorded() ) ); ?></a></span>29 <span class="bp-embed-timestamp"><a href="<?php bp_activity_thread_permalink(); ?>"><?php echo esc_html( date_i18n( get_option( 'time_format' ) . ' - ' . get_option( 'date_format' ), strtotime( bp_get_activity_date_recorded() ) ) ); ?></a></span> 30 30 </p> 31 31 </div> -
trunk/src/bp-templates/bp-legacy/buddypress/blogs/blogs-loop.php
r12082 r13822 119 119 120 120 <div id="message" class="info"> 121 <p><?php _e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p>121 <p><?php esc_html_e( 'Sorry, there were no sites found.', 'buddypress' ); ?></p> 122 122 </div> 123 123 -
trunk/src/bp-templates/bp-legacy/buddypress/blogs/confirm.php
r13530 r13822 34 34 sprintf( 35 35 /* translators: %s: the link of the new site */ 36 __( '%s is your new site.', 'buddypress' ),36 esc_html__( '%s is your new site.', 'buddypress' ), 37 37 sprintf( '<a href="%s">%s</a>', esc_url( $args['blog_url'] ), esc_url( $args['blog_url'] ) ) 38 38 ), 39 39 sprintf( 40 /* translators: 1: Login URL, 2: User name */41 __( '<a href="%1$s">Log in</a>as "%2$s" using your existing password.', 'buddypress' ),42 esc_url( $args['login_url'] ),40 /* translators: 1: Login link, 2: User name */ 41 esc_html__( '%1$s as "%2$s" using your existing password.', 'buddypress' ), 42 '<a href="' . esc_url( $args['login_url'] ) . '">' . esc_html__( 'Log in', 'buddypress' ) . '</a>', 43 43 esc_html( $args['user_name'] ) 44 44 ) -
trunk/src/bp-templates/bp-legacy/buddypress/blogs/index.php
r13530 r13822 65 65 <?php 66 66 /* translators: %s: all blogs count */ 67 printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?>67 printf( esc_html__( 'All Sites %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_blog_count() ) . '</span>' ); ?> 68 68 </a> 69 69 </li> … … 75 75 <?php 76 76 /* translators: %s: current user blogs count */ 77 printf( __( 'My Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?>77 printf( esc_html__( 'My Sites %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); ?> 78 78 </a> 79 79 </li> … … 107 107 <li id="blogs-order-select" class="last filter"> 108 108 109 <label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>109 <label for="blogs-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label> 110 110 <select id="blogs-order-by"> 111 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>112 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>113 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>111 <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option> 112 <option value="newest"><?php esc_html_e( 'Newest', 'buddypress' ); ?></option> 113 <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option> 114 114 115 115 <?php … … 127 127 </div> 128 128 129 <h2 class="bp-screen-reader-text"><?php 130 /* translators: accessibility text */ 131 _e( 'Sites directory', 'buddypress' ); 132 ?></h2> 129 <h2 class="bp-screen-reader-text"> 130 <?php 131 /* translators: accessibility text */ 132 esc_html_e( 'Sites directory', 'buddypress' ); 133 ?> 134 </h2> 133 135 134 136 <div id="blogs-dir-list" class="blogs dir-list"> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php
r13156 r13822 58 58 <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?> 59 59 60 <h2 class="bp-screen-reader-text"><?php 61 /* translators: accessibility text */ 62 _e( 'Group Details', 'buddypress' ); 63 ?></h2> 60 <h2 class="bp-screen-reader-text"> 61 <?php 62 /* translators: accessibility text */ 63 esc_html_e( 'Group Details', 'buddypress' ); 64 ?> 65 </h2> 64 66 65 67 <?php … … 73 75 74 76 <div> 75 <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>77 <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label> 76 78 <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php echo esc_attr( bp_get_new_group_name() ); ?>" /> 77 79 </div> 78 80 79 81 <div> 80 <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>82 <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label> 81 83 <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_new_group_description(); ?></textarea> 82 84 </div> … … 99 101 <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?> 100 102 101 <h2 class="bp-screen-reader-text"><?php 102 /* translators: accessibility text */ 103 _e( 'Group Settings', 'buddypress' ); 104 ?></h2> 103 <h2 class="bp-screen-reader-text"> 104 <?php 105 /* translators: accessibility text */ 106 esc_html_e( 'Group Settings', 'buddypress' ); 107 ?> 108 </h2> 105 109 106 110 <?php … … 115 119 <fieldset class="group-create-privacy"> 116 120 117 <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>121 <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend> 118 122 119 123 <div class="radio"> 120 124 121 <label for="group-status-public"><input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' == bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php_e( 'This is a public group', 'buddypress' ); ?></label>125 <label for="group-status-public"><input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' == bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php esc_html_e( 'This is a public group', 'buddypress' ); ?></label> 122 126 123 127 <ul id="public-group-description"> 124 <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>125 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>126 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>128 <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li> 129 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 130 <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li> 127 131 </ul> 128 132 129 <label for="group-status-private"><input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php _e( 'This is a private group', 'buddypress' ); ?></label>133 <label for="group-status-private"><input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php esc_html_e( 'This is a private group', 'buddypress' ); ?></label> 130 134 131 135 <ul id="private-group-description"> 132 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>133 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>134 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>136 <li><?php esc_html_e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li> 137 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 138 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 135 139 </ul> 136 140 137 <label for="group-status-hidden"><input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php _e('This is a hidden group', 'buddypress' ); ?></label>141 <label for="group-status-hidden"><input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php esc_html_e('This is a hidden group', 'buddypress' ); ?></label> 138 142 139 143 <ul id="hidden-group-description"> 140 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>141 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>142 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>144 <li><?php esc_html_e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li> 145 <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li> 146 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 143 147 </ul> 144 148 … … 151 155 152 156 <fieldset class="group-create-types"> 153 <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>154 155 <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>157 <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend> 158 159 <p><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p> 156 160 157 161 <?php foreach ( $group_types as $type ) : ?> 158 162 <div class="checkbox"> 159 <label for="<?php printf( 'group-type-%s', $type->name ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( true, ! empty( $type->create_screen_checked ) ); ?> /> <?php echo esc_html( $type->labels['name'] ); ?>163 <label for="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( true, ! empty( $type->create_screen_checked ) ); ?> /> <?php echo esc_html( $type->labels['name'] ); ?> 160 164 <?php 161 165 if ( ! empty( $type->description ) ) { 162 166 /* translators: Group type description shown when creating a group. */ 163 printf( __( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );167 printf( esc_html__( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' ); 164 168 } 165 169 ?> … … 177 181 <fieldset class="group-create-invitations"> 178 182 179 <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>180 181 <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>183 <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend> 184 185 <p><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p> 182 186 183 187 <div class="radio"> 184 188 185 <label for="group-invite-status-members"><input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> <?php _e( 'All group members', 'buddypress' ); ?></label>186 187 <label for="group-invite-status-mods"><input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> <?php _e( 'Group admins and mods only', 'buddypress' ); ?></label>188 189 <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php _e( 'Group admins only', 'buddypress' ); ?></label>189 <label for="group-invite-status-members"><input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> <?php esc_html_e( 'All group members', 'buddypress' ); ?></label> 190 191 <label for="group-invite-status-mods"><input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> <?php esc_html_e( 'Group admins and mods only', 'buddypress' ); ?></label> 192 193 <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php esc_html_e( 'Group admins only', 'buddypress' ); ?></label> 190 194 191 195 </div> … … 211 215 <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?> 212 216 213 <h2 class="bp-screen-reader-text"><?php 214 /* translators: accessibility text */ 215 _e( 'Group Avatar', 'buddypress' ); 216 ?></h2> 217 <h2 class="bp-screen-reader-text"> 218 <?php 219 /* translators: accessibility text */ 220 esc_html_e( 'Group Avatar', 'buddypress' ); 221 ?> 222 </h2> 217 223 218 224 <?php … … 234 240 235 241 <div class="main-column"> 236 <p><?php _e( "Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>242 <p><?php esc_html_e( "Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p> 237 243 238 244 <p> 239 <label for="file" class="bp-screen-reader-text"><?php 240 /* translators: accessibility text */ 241 _e( 'Select an image', 'buddypress' ); 242 ?></label> 245 <label for="file" class="bp-screen-reader-text"> 246 <?php 247 /* translators: accessibility text */ 248 esc_html_e( 'Select an image', 'buddypress' ); 249 ?> 250 </label> 243 251 <input type="file" name="file" id="file" /> 244 252 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" /> … … 246 254 </p> 247 255 248 <p><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>256 <p><?php esc_html_e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p> 249 257 </div><!-- .main-column --> 250 258 … … 261 269 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 262 270 263 <h4><?php _e( 'Crop Group Profile Photo', 'buddypress' ); ?></h4>271 <h4><?php esc_html_e( 'Crop Group Profile Photo', 'buddypress' ); ?></h4> 264 272 265 273 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" /> … … 296 304 <?php if ( bp_is_group_creation_step( 'group-cover-image' ) ) : ?> 297 305 298 <h2 class="bp-screen-reader-text"><?php 299 /* translators: accessibility text */ 300 _e( 'Cover Image', 'buddypress' ); 301 ?></h2> 306 <h2 class="bp-screen-reader-text"> 307 <?php 308 /* translators: accessibility text */ 309 esc_html_e( 'Cover Image', 'buddypress' ); 310 ?> 311 </h2> 302 312 303 313 <?php … … 312 322 <div id="header-cover-image"></div> 313 323 314 <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>324 <p><?php esc_html_e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p> 315 325 316 326 <?php bp_attachments_get_template_part( 'cover-images/index' ); ?> … … 332 342 <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?> 333 343 334 <h2 class="bp-screen-reader-text"><?php 335 /* translators: accessibility text */ 336 _e( 'Group Invites', 'buddypress' ); 337 ?></h2> 344 <h2 class="bp-screen-reader-text"> 345 <?php 346 /* translators: accessibility text */ 347 esc_html_e( 'Group Invites', 'buddypress' ); 348 ?> 349 </h2> 338 350 339 351 <?php … … 363 375 364 376 <div id="message" class="info"> 365 <p><?php _e('Select people to invite from your friends list.', 'buddypress' ); ?></p>377 <p><?php esc_html_e('Select people to invite from your friends list.', 'buddypress' ); ?></p> 366 378 </div> 367 379 … … 381 393 382 394 <div class="action"> 383 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>395 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php esc_html_e( 'Remove Invite', 'buddypress' ); ?></a> 384 396 </div> 385 397 </li> … … 398 410 399 411 <div id="message" class="info"> 400 <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group.', 'buddypress' ); ?></p>412 <p><?php esc_html_e( 'Once you have built up friend connections you will be able to invite others to your group.', 'buddypress' ); ?></p> 401 413 </div> 402 414 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php
r13437 r13822 69 69 <?php 70 70 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 71 printf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active() );71 printf( esc_html__( 'Active %s', 'buddypress' ), esc_html( bp_get_group_last_active() ) ); 72 72 ?> 73 73 </span> … … 141 141 142 142 <div id="message" class="info"> 143 <p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p>143 <p><?php esc_html_e( 'There were no groups found.', 'buddypress' ); ?></p> 144 144 </div> 145 145 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php
r13442 r13822 64 64 <?php 65 65 /* translators: %s: all groups count */ 66 printf( __( 'All Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count() . '</span>' );66 printf( esc_html__( 'All Groups %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_group_count() ) . '</span>' ); 67 67 ?> 68 68 </a> … … 74 74 <?php 75 75 /* translators: %s: current user groups count */ 76 printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' );76 printf( esc_html__( 'My Groups %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); 77 77 ?> 78 78 </a> … … 105 105 <li id="groups-order-select" class="last filter"> 106 106 107 <label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>107 <label for="groups-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label> 108 108 109 109 <select id="groups-order-by"> 110 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>111 <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>112 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>113 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>110 <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option> 111 <option value="popular"><?php esc_html_e( 'Most Members', 'buddypress' ); ?></option> 112 <option value="newest"><?php esc_html_e( 'Newly Created', 'buddypress' ); ?></option> 113 <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option> 114 114 115 115 <?php … … 126 126 </div> 127 127 128 <h2 class="bp-screen-reader-text"><?php 129 /* translators: accessibility text */ 130 _e( 'Groups directory', 'buddypress' ); 131 ?></h2> 128 <h2 class="bp-screen-reader-text"> 129 <?php 130 /* translators: accessibility text */ 131 esc_html_e( 'Groups directory', 'buddypress' ); 132 ?> 133 </h2> 132 134 133 135 <div id="groups-dir-list" class="groups dir-list"> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/activity.php
r12907 r13822 14 14 <li class="feed"> 15 15 <a href="<?php bp_group_activity_feed_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"> 16 <?php _e( 'RSS', 'buddypress' ); ?>16 <?php esc_html_e( 'RSS', 'buddypress' ); ?> 17 17 </a> 18 18 </li> … … 29 29 30 30 <li id="activity-filter-select" class="last"> 31 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>31 <label for="activity-filter-by"><?php esc_html_e( 'Show:', 'buddypress' ); ?></label> 32 32 <select id="activity-filter-by"> 33 <option value="-1"><?php _e( '— Everything —', 'buddypress' ); ?></option>33 <option value="-1"><?php esc_html_e( '— Everything —', 'buddypress' ); ?></option> 34 34 35 35 <?php bp_activity_show_filters( 'group' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/delete-group.php
r12082 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Delete Group', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Delete Group', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 22 22 23 23 <div id="message" class="info"> 24 <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>24 <p><?php esc_html_e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p> 25 25 </div> 26 26 27 <label for="delete-group-understand"><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label>27 <label for="delete-group-understand"><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php esc_html_e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label> 28 28 29 29 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php
r12375 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Details', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Manage Group Details', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 21 21 do_action( 'bp_before_group_details_admin' ); ?> 22 22 23 <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>23 <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label> 24 24 <input type="text" name="group-name" id="group-name" value="<?php echo esc_attr( bp_get_group_name() ); ?>" aria-required="true" /> 25 25 26 <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>26 <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label> 27 27 <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea> 28 28 … … 38 38 <p> 39 39 <label for="group-notify-members"> 40 <input type="checkbox" name="group-notify-members" id="group-notify-members" value="1" /> <?php _e( 'Notify group members of these changes via email', 'buddypress' ); ?>40 <input type="checkbox" name="group-notify-members" id="group-notify-members" value="1" /> <?php esc_html_e( 'Notify group members of these changes via email', 'buddypress' ); ?> 41 41 </label> 42 42 </p> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-avatar.php
r12082 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Group Avatar', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Group Avatar', 'buddypress' ); ?></h2> 13 13 14 14 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 15 15 16 <p><?php _e("Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>16 <p><?php esc_html_e("Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p> 17 17 18 18 <p> 19 <label for="file" class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 _e( 'Select an image', 'buddypress' ); 22 ?></label> 19 <label for="file" class="bp-screen-reader-text"> 20 <?php 21 /* translators: accessibility text */ 22 esc_html_e( 'Select an image', 'buddypress' ); 23 ?> 24 </label> 23 25 <input type="file" name="file" id="file" /> 24 26 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" /> … … 28 30 <?php if ( bp_get_group_has_avatar() ) : ?> 29 31 30 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>32 <p><?php esc_html_e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p> 31 33 32 34 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?> … … 48 50 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 49 51 50 <h4><?php _e( 'Crop Profile Photo', 'buddypress' ); ?></h4>52 <h4><?php esc_html_e( 'Crop Profile Photo', 'buddypress' ); ?></h4> 51 53 52 54 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" /> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-cover-image.php
r12082 r13822 10 10 ?> 11 11 12 <h2><?php _e( 'Cover Image', 'buddypress' ); ?></h2>12 <h2><?php esc_html_e( 'Cover Image', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 21 21 do_action( 'bp_before_group_settings_cover_image' ); ?> 22 22 23 <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>23 <p><?php esc_html_e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p> 24 24 25 25 <?php bp_attachments_get_template_part( 'cover-images/index' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php
r13156 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Settings', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Manage Group Settings', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 23 23 <fieldset class="group-create-privacy"> 24 24 25 <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>25 <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend> 26 26 27 27 <div class="radio"> 28 28 29 <label for="group-status-public"><input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' == bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php_e( 'This is a public group', 'buddypress' ); ?></label>29 <label for="group-status-public"><input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' == bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php esc_html_e( 'This is a public group', 'buddypress' ); ?></label> 30 30 31 31 <ul id="public-group-description"> 32 <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>33 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>34 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>32 <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li> 33 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 34 <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li> 35 35 </ul> 36 36 37 <label for="group-status-private"><input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php _e( 'This is a private group', 'buddypress' ); ?></label>37 <label for="group-status-private"><input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php esc_html_e( 'This is a private group', 'buddypress' ); ?></label> 38 38 39 39 <ul id="private-group-description"> 40 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>41 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>42 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>40 <li><?php esc_html_e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li> 41 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 42 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 43 43 </ul> 44 44 45 <label for="group-status-hidden"><input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php _e('This is a hidden group', 'buddypress' ); ?></label>45 <label for="group-status-hidden"><input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php esc_html_e('This is a hidden group', 'buddypress' ); ?></label> 46 46 47 47 <ul id="hidden-group-description"> 48 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>49 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>50 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>48 <li><?php esc_html_e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li> 49 <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li> 50 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 51 51 </ul> 52 52 … … 59 59 60 60 <fieldset class="group-create-types"> 61 <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>61 <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend> 62 62 63 <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>63 <p><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p> 64 64 65 65 <?php foreach ( $group_types as $type ) : ?> 66 66 <div class="checkbox"> 67 <label for="<?php printf( 'group-type-%s', $type->name); ?>">68 <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?>67 <label for="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>"> 68 <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?> 69 69 <?php 70 70 if ( ! empty( $type->description ) ) { 71 printf( __( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );71 printf( esc_html__( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' ); 72 72 } 73 73 ?> … … 86 86 <fieldset class="group-create-invitations"> 87 87 88 <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>88 <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend> 89 89 90 <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>90 <p><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p> 91 91 92 92 <div class="radio"> 93 93 94 <label for="group-invite-status-members"><input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> <?php _e( 'All group members', 'buddypress' ); ?></label>94 <label for="group-invite-status-members"><input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> <?php esc_html_e( 'All group members', 'buddypress' ); ?></label> 95 95 96 <label for="group-invite-status-mods"><input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> <?php _e( 'Group admins and mods only', 'buddypress' ); ?></label>96 <label for="group-invite-status-mods"><input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> <?php esc_html_e( 'Group admins and mods only', 'buddypress' ); ?></label> 97 97 98 <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php _e( 'Group admins only', 'buddypress' ); ?></label>98 <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php esc_html_e( 'Group admins only', 'buddypress' ); ?></label> 99 99 100 100 </div> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php
r12082 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Manage Members', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Manage Members', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 24 24 25 25 <div class="bp-widget group-members-list group-admins-list"> 26 <h3 class="section-header"><?php _e( 'Administrators', 'buddypress' ); ?></h3>26 <h3 class="section-header"><?php esc_html_e( 'Administrators', 'buddypress' ); ?></h3> 27 27 28 28 <?php if ( bp_group_has_members( array( 'per_page' => 15, 'group_role' => array( 'admin' ), 'page_arg' => 'mlpage-admin' ) ) ) : ?> … … 73 73 <div class="action"> 74 74 <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> 75 <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>75 <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php esc_html_e( 'Demote to Member', 'buddypress' ); ?></a> 76 76 <?php endif; ?> 77 77 … … 110 110 111 111 <div id="message" class="info"> 112 <p><?php _e( 'No group administrators were found.', 'buddypress' ); ?></p>112 <p><?php esc_html_e( 'No group administrators were found.', 'buddypress' ); ?></p> 113 113 </div> 114 114 … … 117 117 118 118 <div class="bp-widget group-members-list group-mods-list"> 119 <h3 class="section-header"><?php _e( 'Moderators', 'buddypress' ); ?></h3>119 <h3 class="section-header"><?php esc_html_e( 'Moderators', 'buddypress' ); ?></h3> 120 120 121 121 <?php if ( bp_group_has_members( array( 'per_page' => 15, 'group_role' => array( 'mod' ), 'page_arg' => 'mlpage-mod' ) ) ) : ?> … … 166 166 167 167 <div class="action"> 168 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>169 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>168 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm mod-promote-to-admin"><?php esc_html_e( 'Promote to Admin', 'buddypress' ); ?></a> 169 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php esc_html_e( 'Demote to Member', 'buddypress' ); ?></a> 170 170 171 171 <?php … … 205 205 206 206 <div id="message" class="info"> 207 <p><?php _e( 'No group moderators were found.', 'buddypress' ); ?></p>207 <p><?php esc_html_e( 'No group moderators were found.', 'buddypress' ); ?></p> 208 208 </div> 209 209 … … 212 212 213 213 <div class="bp-widget group-members-list"> 214 <h3 class="section-header"><?php _e( "Members", 'buddypress' ); ?></h3>214 <h3 class="section-header"><?php esc_html_e( "Members", 'buddypress' ); ?></h3> 215 215 216 216 <?php if ( bp_group_has_members( array( 'per_page' => 15, 'exclude_banned' => 0 ) ) ) : ?> … … 246 246 if ( bp_get_group_member_is_banned() ) { 247 247 echo ' <span class="banned">'; 248 _e( '(banned)', 'buddypress' );248 esc_html_e( '(banned)', 'buddypress' ); 249 249 echo '</span>'; 250 250 } ?> … … 269 269 <?php if ( bp_get_group_member_is_banned() ) : ?> 270 270 271 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>271 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban"><?php esc_html_e( 'Remove Ban', 'buddypress' ); ?></a> 272 272 273 273 <?php else : ?> 274 274 275 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban"><?php _e( 'Kick & Ban', 'buddypress' ); ?></a>276 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>277 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>275 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban"><?php esc_html_e( 'Kick & Ban', 'buddypress' ); ?></a> 276 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod"><?php esc_html_e( 'Promote to Mod', 'buddypress' ); ?></a> 277 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin"><?php esc_html_e( 'Promote to Admin', 'buddypress' ); ?></a> 278 278 279 279 <?php endif; ?> 280 280 281 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a>281 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php esc_html_e( 'Remove from group', 'buddypress' ); ?></a> 282 282 283 283 <?php … … 316 316 317 317 <div id="message" class="info"> 318 <p><?php _e( 'No group members were found.', 'buddypress' ); ?></p>318 <p><?php esc_html_e( 'No group members were found.', 'buddypress' ); ?></p> 319 319 </div> 320 320 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/membership-requests.php
r12082 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Manage Membership Requests', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Manage Membership Requests', 'buddypress' ); ?></h2> 13 13 14 14 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php
r13437 r13822 64 64 <?php 65 65 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 66 printf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active() );66 printf( esc_html__( 'Active %s', 'buddypress' ), esc_html( bp_get_group_last_active() ) ); 67 67 ?> 68 68 </span> … … 78 78 <?php if ( bp_group_is_visible() ) : ?> 79 79 80 <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2>80 <h2><?php esc_html_e( 'Group Admins', 'buddypress' ); ?></h2> 81 81 82 82 <?php bp_group_list_admins(); … … 98 98 do_action( 'bp_before_group_menu_mods' ); ?> 99 99 100 <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2>100 <h2><?php esc_html_e( 'Group Mods' , 'buddypress' ); ?></h2> 101 101 102 102 <?php bp_group_list_mods(); -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php
r13437 r13822 21 21 <?php if ( bp_group_is_visible() ) : ?> 22 22 23 <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2>23 <h2><?php esc_html_e( 'Group Admins', 'buddypress' ); ?></h2> 24 24 25 25 <?php bp_group_list_admins(); … … 41 41 do_action( 'bp_before_group_menu_mods' ); ?> 42 42 43 <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2>43 <h2><?php esc_html_e( 'Group Mods' , 'buddypress' ); ?></h2> 44 44 45 45 <?php bp_group_list_mods(); … … 73 73 <?php 74 74 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 75 printf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active() );75 printf( esc_html__( 'Active %s', 'buddypress' ), esc_html( bp_get_group_last_active() ) ); 76 76 ?> 77 77 </span> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php
r12082 r13822 73 73 74 74 <div class="action"> 75 <a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>75 <a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php esc_html_e( 'Remove Invite', 'buddypress' ); ?></a> 76 76 77 77 <?php … … 109 109 110 110 <div id="message" class="info"> 111 <p><?php _e( 'Select friends to invite.', 'buddypress' ); ?></p>111 <p><?php esc_html_e( 'Select friends to invite.', 'buddypress' ); ?></p> 112 112 </div> 113 113 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/members.php
r12082 r13822 130 130 131 131 <div id="message" class="info"> 132 <p><?php _e( 'No members were found.', 'buddypress' ); ?></p>132 <p><?php esc_html_e( 'No members were found.', 'buddypress' ); ?></p> 133 133 </div> 134 134 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/requests-loop.php
r12082 r13822 94 94 95 95 <div id="message" class="info"> 96 <p><?php _e( 'There are no pending membership requests.', 'buddypress' ); ?></p>96 <p><?php esc_html_e( 'There are no pending membership requests.', 'buddypress' ); ?></p> 97 97 </div> 98 98 -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php
r13156 r13822 23 23 elseif ( bp_get_new_group_invite_friend_list() ) : ?> 24 24 25 <h2 class="bp-screen-reader-text"><?php _e( 'Send invites', 'buddypress' ); ?></h2>25 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Send invites', 'buddypress' ); ?></h2> 26 26 27 27 <?php /* 'send-invite-form' is important for AJAX support */ ?> … … 48 48 49 49 <div id="message" class="info"> 50 <p class="notice"><?php _e( 'Group invitations can only be extended to friends.', 'buddypress' ); ?></p>51 <p class="message-body"><?php _e( "Once you've made some friendships, you'll be able to invite those members to this group.", 'buddypress' ); ?></p>50 <p class="notice"><?php esc_html_e( 'Group invitations can only be extended to friends.', 'buddypress' ); ?></p> 51 <p class="message-body"><?php esc_html_e( "Once you've made some friendships, you'll be able to invite those members to this group.", 'buddypress' ); ?></p> 52 52 </div> 53 53 … … 57 57 58 58 <div id="message" class="info"> 59 <p class="notice"><?php _e( 'All of your friends already belong to this group.', 'buddypress' ); ?></p>59 <p class="notice"><?php esc_html_e( 'All of your friends already belong to this group.', 'buddypress' ); ?></p> 60 60 </div> 61 61 -
trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php
r13436 r13822 43 43 44 44 <?php if ( isset( $_GET['e'] ) ) : ?> 45 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>45 <p><?php esc_html_e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p> 46 46 <?php else : ?> 47 47 <p> 48 48 <?php 49 49 /* translators: %s: login url */ 50 printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_url() ) ); 50 printf( 51 esc_html__( 'Your account was activated successfully! You can now %s with the username and password you provided when you signed up.', 'buddypress' ), 52 '<a href="'. esc_url( wp_login_url( bp_get_root_url() ) ) . '">' . esc_html__( 'log in', 'buddypress' ) . '</a>' 53 ); 51 54 ?> 52 55 </p> … … 55 58 <?php else : ?> 56 59 57 <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>60 <p><?php esc_html_e( 'Please provide a valid activation key.', 'buddypress' ); ?></p> 58 61 59 62 <form action="" method="post" class="standard-form" id="activation-form"> 60 63 61 <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>64 <label for="key"><?php esc_html_e( 'Activation Key:', 'buddypress' ); ?></label> 62 65 <input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" /> 63 66 -
trunk/src/bp-templates/bp-legacy/buddypress/members/index.php
r13442 r13822 60 60 <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Members directory main navigation', 'buddypress' ); ?>" role="navigation"> 61 61 <ul> 62 <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>62 <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( esc_html__( 'All Members %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_member_count() ) . '</span>' ); ?></a></li> 63 63 64 64 <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 65 <li id="members-personal"><a href="<?php bp_loggedin_user_link( array( bp_get_friends_slug(), 'my-friends' ) ); ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>65 <li id="members-personal"><a href="<?php bp_loggedin_user_link( array( bp_get_friends_slug(), 'my-friends' ) ); ?>"><?php printf( esc_html__( 'My Friends %s', 'buddypress' ), '<span>' . esc_html( bp_get_total_friend_count( bp_loggedin_user_id() ) ) . '</span>' ); ?></a></li> 66 66 <?php endif; ?> 67 67 … … 90 90 91 91 <li id="members-order-select" class="last filter"> 92 <label for="members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>92 <label for="members-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label> 93 93 <select id="members-order-by"> 94 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>95 <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>94 <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option> 95 <option value="newest"><?php esc_html_e( 'Newest Registered', 'buddypress' ); ?></option> 96 96 97 97 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 98 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>98 <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option> 99 99 <?php endif; ?> 100 100 … … 112 112 </div> 113 113 114 <h2 class="bp-screen-reader-text"><?php 115 /* translators: accessibility text */ 116 _e( 'Members directory', 'buddypress' ); 117 ?></h2> 114 <h2 class="bp-screen-reader-text"> 115 <?php 116 /* translators: accessibility text */ 117 esc_html_e( 'Members directory', 'buddypress' ); 118 ?> 119 </h2> 118 120 119 121 <div id="members-dir-list" class="members dir-list"> -
trunk/src/bp-templates/bp-legacy/buddypress/members/members-loop.php
r12082 r13822 141 141 142 142 <div id="message" class="info"> 143 <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>143 <p><?php esc_html_e( "Sorry, no members were found.", 'buddypress' ); ?></p> 144 144 </div> 145 145 -
trunk/src/bp-templates/bp-legacy/buddypress/members/register.php
r13170 r13822 44 44 do_action( 'bp_before_registration_disabled' ); ?> 45 45 46 <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>46 <p><?php esc_html_e( 'User registration is currently not allowed.', 'buddypress' ); ?></p> 47 47 48 48 <?php … … 66 66 </div> 67 67 68 <p><?php _e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>68 <p><?php esc_html_e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p> 69 69 70 70 <?php … … 81 81 <?php /***** Basic Account Details ******/ ?> 82 82 83 <h2><?php _e( 'Account Details', 'buddypress' ); ?></h2>84 85 <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>83 <h2><?php esc_html_e( 'Account Details', 'buddypress' ); ?></h2> 84 85 <label for="signup_username"><?php esc_html_e( 'Username', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 86 86 <?php 87 87 … … 94 94 <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" <?php bp_form_field_attributes( 'username' ); ?>/> 95 95 96 <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>96 <label for="signup_email"><?php esc_html_e( 'Email Address', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 97 97 <?php 98 98 … … 105 105 <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" <?php bp_form_field_attributes( 'email' ); ?>/> 106 106 107 <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>107 <label for="signup_password"><?php esc_html_e( 'Choose a Password', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 108 108 <?php 109 109 … … 117 117 <div id="pass-strength-result"></div> 118 118 119 <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>119 <label for="signup_password_confirm"><?php esc_html_e( 'Confirm Password', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 120 120 <?php 121 121 … … 163 163 <div class="register-section" id="profile-details-section"> 164 164 165 <h2><?php _e( 'Profile Details', 'buddypress' ); ?></h2>165 <h2><?php esc_html_e( 'Profile Details', 'buddypress' ); ?></h2> 166 166 167 167 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> … … 189 189 printf( 190 190 /* translators: %s: level of visibility */ 191 __( 'This field can be seen by: %s', 'buddypress' ),192 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'191 esc_html__( 'This field can be seen by: %s', 'buddypress' ), 192 '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>' 193 193 ); 194 194 ?> 195 195 </span> 196 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>196 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php echo esc_html_x( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button> 197 197 </p> 198 198 199 199 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> 200 200 <fieldset> 201 <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>201 <legend><?php esc_html_e( 'Who can see this field?', 'buddypress' ) ?></legend> 202 202 203 203 <?php bp_profile_visibility_radio_buttons() ?> 204 204 205 205 </fieldset> 206 <button type="button" class="field-visibility-settings-close"><?php _e( 'Close', 'buddypress' ) ?></button>206 <button type="button" class="field-visibility-settings-close"><?php esc_html_e( 'Close', 'buddypress' ) ?></button> 207 207 208 208 </div> … … 211 211 <?php 212 212 printf( 213 __( 'This field can be seen by: %s', 'buddypress' ),214 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'213 esc_html__( 'This field can be seen by: %s', 'buddypress' ), 214 '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>' 215 215 ); 216 216 ?> … … 273 273 <div class="register-section" id="blog-details-section"> 274 274 275 <h2><?php _e( 'Blog Details', 'buddypress' ); ?></h2>276 277 <p><label for="signup_with_blog"><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></label></p>275 <h2><?php esc_html_e( 'Blog Details', 'buddypress' ); ?></h2> 276 277 <p><label for="signup_with_blog"><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php esc_html_e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></label></p> 278 278 279 279 <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>> 280 280 281 <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>281 <label for="signup_blog_url"><?php esc_html_e( 'Blog URL', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 282 282 <?php 283 283 … … 292 292 http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_signup_subdomain_base(); ?> 293 293 <?php else : ?> 294 <?php echo home_url( '/'); ?> <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />294 <?php echo esc_url( home_url( '/' ) ); ?> <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> 295 295 <?php endif; ?> 296 296 297 <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php_e( '(required)', 'buddypress' ); ?></label>297 <label for="signup_blog_title"><?php esc_html_e( 'Site Title', 'buddypress' ); ?> <?php esc_html_e( '(required)', 'buddypress' ); ?></label> 298 298 <?php 299 299 … … 307 307 308 308 <fieldset class="register-site"> 309 <legend class="label"><?php _e( 'Privacy: I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></legend>309 <legend class="label"><?php esc_html_e( 'Privacy: I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></legend> 310 310 <?php 311 311 … … 317 317 do_action( 'bp_signup_blog_privacy_errors' ); ?> 318 318 319 <label for="signup_blog_privacy_public"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>320 <label for="signup_blog_privacy_private"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>319 <label for="signup_blog_privacy_public"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php esc_html_e( 'Yes', 'buddypress' ); ?></label> 320 <label for="signup_blog_privacy_private"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php esc_html_e( 'No', 'buddypress' ); ?></label> 321 321 </fieldset> 322 322 … … 399 399 <div id="template-notices" role="alert" aria-atomic="true"> 400 400 <?php if ( bp_get_membership_requests_required() ) : ?> 401 <p><?php _e( 'You have successfully submitted your membership request! Our site moderators will review your submission and send you an activation email if your request is approved.', 'buddypress' ); ?></p>401 <p><?php esc_html_e( 'You have successfully submitted your membership request! Our site moderators will review your submission and send you an activation email if your request is approved.', 'buddypress' ); ?></p> 402 402 <?php elseif ( bp_registration_needs_activation() ) : ?> 403 <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>403 <p><?php esc_html_e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p> 404 404 <?php else : ?> 405 <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>405 <p><?php esc_html_e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p> 406 406 <?php endif; ?> 407 407 </div> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/activity.php
r12082 r13822 16 16 17 17 <li id="activity-filter-select" class="last"> 18 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>18 <label for="activity-filter-by"><?php esc_html_e( 'Show:', 'buddypress' ); ?></label> 19 19 <select id="activity-filter-by"> 20 <option value="-1"><?php _e( '— Everything —', 'buddypress' ); ?></option>20 <option value="-1"><?php esc_html_e( '— Everything —', 'buddypress' ); ?></option> 21 21 22 22 <?php bp_activity_show_filters(); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/blogs.php
r12082 r13822 17 17 <li id="blogs-order-select" class="last filter"> 18 18 19 <label for="blogs-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>19 <label for="blogs-order-by"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label> 20 20 <select id="blogs-order-by"> 21 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>22 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>23 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>21 <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option> 22 <option value="newest"><?php esc_html_e( 'Newest', 'buddypress' ); ?></option> 23 <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option> 24 24 25 25 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends.php
r12082 r13822 18 18 <li id="members-order-select" class="last filter"> 19 19 20 <label for="members-friends"><?php _e( 'Order By:', 'buddypress' ); ?></label>20 <label for="members-friends"><?php esc_html_e( 'Order By:', 'buddypress' ); ?></label> 21 21 <select id="members-friends"> 22 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>23 <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>24 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>22 <option value="active"><?php esc_html_e( 'Last Active', 'buddypress' ); ?></option> 23 <option value="newest"><?php esc_html_e( 'Newest Registered', 'buddypress' ); ?></option> 24 <option value="alphabetical"><?php esc_html_e( 'Alphabetical', 'buddypress' ); ?></option> 25 25 26 26 <?php … … 55 55 56 56 <?php if (is_user_logged_in() ) : ?> 57 <h2 class="bp-screen-reader-text"><?php 58 /* translators: accessibility text */ 59 _e( 'My friends', 'buddypress' ); 60 ?></h2> 57 <h2 class="bp-screen-reader-text"> 58 <?php 59 /* translators: accessibility text */ 60 esc_html_e( 'My friends', 'buddypress' ); 61 ?> 62 </h2> 61 63 <?php else : ?> 62 <h2 class="bp-screen-reader-text"><?php 63 /* translators: accessibility text */ 64 _e( 'Friends', 'buddypress' ); 65 ?></h2> 64 <h2 class="bp-screen-reader-text"> 65 <?php 66 /* translators: accessibility text */ 67 esc_html_e( 'Friends', 'buddypress' ); 68 ?> 69 </h2> 66 70 <?php endif ?> 67 71 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php
r12082 r13822 17 17 <?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?> 18 18 19 <h2 class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 _e( 'Friendship requests', 'buddypress' ); 22 ?></h2> 19 <h2 class="bp-screen-reader-text"> 20 <?php 21 /* translators: accessibility text */ 22 esc_html_e( 'Friendship requests', 'buddypress' ); 23 ?> 24 </h2> 23 25 24 26 <div id="pag-top" class="pagination no-ajax"> … … 61 63 62 64 <div class="action"> 63 <a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 64 <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>65 <a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php esc_html_e( 'Accept', 'buddypress' ); ?></a> 66 <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php esc_html_e( 'Reject', 'buddypress' ); ?></a> 65 67 66 68 <?php … … 106 108 107 109 <div id="message" class="info"> 108 <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p>110 <p><?php esc_html_e( 'You have no pending friendship requests.', 'buddypress' ); ?></p> 109 111 </div> 110 112 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php
r13437 r13822 17 17 <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_displayed_user_id() ) ) : ?> 18 18 19 <h2 class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 esc_html_e( 'Group invitations', 'buddypress' ); 22 ?></h2> 19 <h2 class="bp-screen-reader-text"> 20 <?php 21 /* translators: accessibility text */ 22 esc_html_e( 'Group invitations', 'buddypress' ); 23 ?> 24 </h2> 23 25 24 26 <ul id="group-list" class="invites item-list"> … … 38 40 - 39 41 <?php 40 /* translators: %s: group members count */ 41 printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false ) ); 42 echo esc_html( 43 sprintf( 44 /* translators: %s: group members count */ 45 _nx( '%d member', '%d members', bp_get_group_total_members( false ), 'Group member count', 'buddypress' ), 46 esc_html( bp_get_group_total_members( false ) ) 47 ) 48 ); 42 49 ?> 43 50 </span> … … 58 65 59 66 <div class="action"> 60 <a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 61 <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>67 <a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php esc_html_e( 'Accept', 'buddypress' ); ?></a> 68 <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php esc_html_e( 'Reject', 'buddypress' ); ?></a> 62 69 63 70 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/invitations/send-invites.php
r12951 r13822 39 39 <span class="bp-icon" aria-hidden="true"></span> 40 40 <span class="bp-help-text"> 41 <?php echo apply_filters( 'members_invitations_form_access_restricted', esc_html__( 'Sorry, you are not allowed to send invitations.', 'buddypress') ); ?>41 <?php echo esc_html( apply_filters( 'members_invitations_form_access_restricted', __( 'Sorry, you are not allowed to send invitations.', 'buddypress' ) ) ); ?> 42 42 </span> 43 43 </p> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages.php
r12082 r13822 40 40 41 41 <?php if ( bp_is_messages_inbox() ) : ?> 42 <h2 class="bp-screen-reader-text"><?php 43 /* translators: accessibility text */ 44 _e( 'Messages inbox', 'buddypress' ); 45 ?></h2> 42 <h2 class="bp-screen-reader-text"> 43 <?php 44 /* translators: accessibility text */ 45 esc_html_e( 'Messages inbox', 'buddypress' ); 46 ?> 47 </h2> 46 48 <?php elseif ( bp_is_messages_sentbox() ) : ?> 47 <h2 class="bp-screen-reader-text"><?php 48 /* translators: accessibility text */ 49 _e( 'Sent Messages', 'buddypress' ); 50 ?></h2> 49 <h2 class="bp-screen-reader-text"> 50 <?php 51 /* translators: accessibility text */ 52 esc_html_e( 'Sent Messages', 'buddypress' ); 53 ?> 54 </h2> 51 55 <?php endif; ?> 52 56 … … 85 89 do_action( 'bp_before_member_messages_content' ); ?> 86 90 87 <h2 class="bp-screen-reader-text"><?php 88 /* translators: accessibility text */ 89 _e( 'Sitewide Notices', 'buddypress' ); 90 ?></h2> 91 <h2 class="bp-screen-reader-text"> 92 <?php 93 /* translators: accessibility text */ 94 esc_html_e( 'Sitewide Notices', 'buddypress' ); 95 ?> 96 </h2> 91 97 92 98 <div class="messages"> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php
r13443 r13822 17 17 <?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?> 18 18 19 <h2 class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 _e( 'Starred messages', 'buddypress' ); 22 ?></h2> 19 <h2 class="bp-screen-reader-text"> 20 <?php 21 /* translators: accessibility text */ 22 esc_html_e( 'Starred messages', 'buddypress' ); 23 ?> 24 </h2> 23 25 24 26 <div class="pagination no-ajax" id="user-pag"> … … 58 60 <thead> 59 61 <tr> 60 <th scope="col" class="thread-checkbox bulk-select-all"><input id="select-all-messages" type="checkbox"><label class="bp-screen-reader-text" for="select-all-messages"><?php 61 /* translators: accessibility text */ 62 _e( 'Select all', 'buddypress' ); 63 ?></label></th> 64 <th scope="col" class="thread-from"><?php _e( 'From', 'buddypress' ); ?></th> 65 <th scope="col" class="thread-info"><?php _e( 'Subject', 'buddypress' ); ?></th> 62 <th scope="col" class="thread-checkbox bulk-select-all"><input id="select-all-messages" type="checkbox"> 63 <label class="bp-screen-reader-text" for="select-all-messages"> 64 <?php 65 /* translators: accessibility text */ 66 esc_html_e( 'Select all', 'buddypress' ); 67 ?> 68 </label> 69 </th> 70 <th scope="col" class="thread-from"><?php esc_html_e( 'From', 'buddypress' ); ?></th> 71 <th scope="col" class="thread-info"><?php esc_html_e( 'Subject', 'buddypress' ); ?></th> 66 72 67 73 <?php … … 78 84 79 85 <?php if ( bp_is_active( 'messages', 'star' ) ) : ?> 80 <th scope="col" class="thread-star"><span class="message-action-star"><span class="icon"></span> <span class="screen-reader-text"><?php 81 /* translators: accessibility text */ 82 _e( 'Star', 'buddypress' ); 83 ?></span></span></th> 86 <th scope="col" class="thread-star"> 87 <span class="message-action-star"> 88 <span class="icon"></span> 89 <span class="screen-reader-text"> 90 <?php 91 /* translators: accessibility text */ 92 esc_html_e( 'Star', 'buddypress' ); 93 ?> 94 </span> 95 </span> 96 </th> 84 97 <?php endif; ?> 85 98 86 <th scope="col" class="thread-options"><?php _e( 'Actions', 'buddypress' ); ?></th>99 <th scope="col" class="thread-options"><?php esc_html_e( 'Actions', 'buddypress' ); ?></th> 87 100 </tr> 88 101 </thead> … … 96 109 <label for="bp-message-thread-<?php bp_message_thread_id(); ?>"><input type="checkbox" name="message_ids[]" id="bp-message-thread-<?php bp_message_thread_id(); ?>" class="message-check" value="<?php bp_message_thread_id(); ?>" /><span class="bp-screen-reader-text"><?php 97 110 /* translators: accessibility text */ 98 _e( 'Select this message', 'buddypress' );111 esc_html_e( 'Select this message', 'buddypress' ); 99 112 ?></span></label> 100 113 </td> … … 103 116 <td class="thread-from"> 104 117 <?php bp_message_thread_avatar( array( 'width' => 25, 'height' => 25 ) ); ?> 105 <span class="from"><?php _e( 'From:', 'buddypress' ); ?></span> <?php bp_message_thread_from(); ?>118 <span class="from"><?php esc_html_e( 'From:', 'buddypress' ); ?></span> <?php bp_message_thread_from(); ?> 106 119 <?php bp_message_thread_total_and_unread_count(); ?> 107 120 <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> … … 110 123 <td class="thread-from"> 111 124 <?php bp_message_thread_avatar( array( 'width' => 25, 'height' => 25 ) ); ?> 112 <span class="to"><?php _e( 'To:', 'buddypress' ); ?></span> <?php bp_message_thread_to(); ?>125 <span class="to"><?php esc_html_e( 'To:', 'buddypress' ); ?></span> <?php bp_message_thread_to(); ?> 113 126 <?php bp_message_thread_total_and_unread_count(); ?> 114 127 <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> … … 141 154 <td class="thread-options"> 142 155 <?php if ( bp_message_thread_has_unread() ) : ?> 143 <a class="read" href="<?php bp_the_message_thread_mark_read_url( bp_displayed_user_id() );?>"><?php _e( 'Read', 'buddypress' ); ?></a>156 <a class="read" href="<?php bp_the_message_thread_mark_read_url( bp_displayed_user_id() );?>"><?php esc_html_e( 'Read', 'buddypress' ); ?></a> 144 157 <?php else : ?> 145 <a class="unread" href="<?php bp_the_message_thread_mark_unread_url( bp_displayed_user_id() );?>"><?php _e( 'Unread', 'buddypress' ); ?></a>158 <a class="unread" href="<?php bp_the_message_thread_mark_unread_url( bp_displayed_user_id() );?>"><?php esc_html_e( 'Unread', 'buddypress' ); ?></a> 146 159 <?php endif; ?> 147 160 | 148 <a class="delete" href="<?php bp_message_thread_delete_link( bp_displayed_user_id() ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>161 <a class="delete" href="<?php bp_message_thread_delete_link( bp_displayed_user_id() ); ?>"><?php esc_html_e( 'Delete', 'buddypress' ); ?></a> 149 162 150 163 <?php … … 193 206 194 207 <div id="message" class="info"> 195 <p><?php _e( 'Sorry, no messages were found.', 'buddypress' ); ?></p>208 <p><?php esc_html_e( 'Sorry, no messages were found.', 'buddypress' ); ?></p> 196 209 </div> 197 210 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php
r12082 r13822 62 62 <?php endif; ?> 63 63 64 <span class="activity"><?php _e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span>64 <span class="activity"><?php esc_html_e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span> 65 65 </td> 66 66 … … 94 94 95 95 <div id="message" class="info"> 96 <p><?php _e( 'Sorry, no notices were found.', 'buddypress' ); ?></p>96 <p><?php esc_html_e( 'Sorry, no notices were found.', 'buddypress' ); ?></p> 97 97 </div> 98 98 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php
r13196 r13822 29 29 <?php if ( bp_get_thread_recipients_count() <= 1 ) : ?> 30 30 31 <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>31 <?php esc_html_e( 'You are alone in this conversation.', 'buddypress' ); ?> 32 32 33 33 <?php elseif ( bp_get_max_thread_recipients_to_list() <= bp_get_thread_recipients_count() ) : ?> … … 35 35 <?php 36 36 /* translators: %s: message recipients count */ 37 printf( __( 'Conversation between %s recipients.', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) );37 printf( esc_html__( 'Conversation between %s recipients.', 'buddypress' ), esc_html( number_format_i18n( bp_get_thread_recipients_count() ) ) ); 38 38 ?> 39 39 … … 41 41 42 42 <?php 43 /* translators: %s: message recipients list */ 44 printf( __( 'Conversation between %s.', 'buddypress' ), bp_get_thread_recipients_list() ); 43 printf( 44 /* translators: %s: message recipients list */ 45 esc_html__( 'Conversation between %s.', 'buddypress' ), 46 // phpcs:ignore WordPress.Security.EscapeOutput 47 bp_get_thread_recipients_list() 48 ); 45 49 ?> 46 50 … … 112 116 <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?> 113 117 114 <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>118 <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong> 115 119 </div> 116 120 … … 133 137 do_action( 'bp_before_message_reply_box' ); ?> 134 138 135 <label for="message_content" class="bp-screen-reader-text"><?php 136 /* translators: accessibility text */ 137 _e( 'Reply to Message', 'buddypress' ); 138 ?></label> 139 <label for="message_content" class="bp-screen-reader-text"> 140 <?php 141 /* translators: accessibility text */ 142 esc_html_e( 'Reply to Message', 'buddypress' ); 143 ?> 144 </label> 139 145 <textarea name="content" id="message_content" rows="15" cols="40"></textarea> 140 146 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/feedback-no-notifications.php
r12082 r13822 15 15 <?php if ( bp_is_my_profile() ) : ?> 16 16 17 <p><?php _e( 'You have no unread notifications.', 'buddypress' ); ?></p>17 <p><?php esc_html_e( 'You have no unread notifications.', 'buddypress' ); ?></p> 18 18 19 19 <?php else : ?> 20 20 21 <p><?php _e( 'This member has no unread notifications.', 'buddypress' ); ?></p>21 <p><?php esc_html_e( 'This member has no unread notifications.', 'buddypress' ); ?></p> 22 22 23 23 <?php endif; ?> … … 27 27 <?php if ( bp_is_my_profile() ) : ?> 28 28 29 <p><?php _e( 'You have no notifications.', 'buddypress' ); ?></p>29 <p><?php esc_html_e( 'You have no notifications.', 'buddypress' ); ?></p> 30 30 31 31 <?php else : ?> 32 32 33 <p><?php _e( 'This member has no notifications.', 'buddypress' ); ?></p>33 <p><?php esc_html_e( 'This member has no notifications.', 'buddypress' ); ?></p> 34 34 35 35 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php
r12082 r13822 14 14 <tr> 15 15 <th class="icon"></th> 16 <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"><label class="bp-screen-reader-text" for="select-all-notifications"><?php 17 /* translators: accessibility text */ 18 _e( 'Select all', 'buddypress' ); 19 ?></label></th> 20 <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th> 21 <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th> 22 <th class="actions"><?php _e( 'Actions', 'buddypress' ); ?></th> 16 <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"> 17 <label class="bp-screen-reader-text" for="select-all-notifications"> 18 <?php 19 /* translators: accessibility text */ 20 esc_html_e( 'Select all', 'buddypress' ); 21 ?> 22 </label> 23 </th> 24 <th class="title"><?php esc_html_e( 'Notification', 'buddypress' ); ?></th> 25 <th class="date"><?php esc_html_e( 'Date Received', 'buddypress' ); ?></th> 26 <th class="actions"><?php esc_html_e( 'Actions', 'buddypress' ); ?></th> 23 27 </tr> 24 28 </thead> … … 30 34 <tr> 31 35 <td></td> 32 <td class="bulk-select-check"><label for="<?php bp_the_notification_id(); ?>"><input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"><span class="bp-screen-reader-text"><?php 33 /* translators: accessibility text */ 34 _e( 'Select this notification', 'buddypress' ); 35 ?></span></label></td> 36 <td class="notification-description"><?php bp_the_notification_description(); ?></td> 37 <td class="notification-since"><?php bp_the_notification_time_since(); ?></td> 36 <td class="bulk-select-check"> 37 <label for="<?php bp_the_notification_id(); ?>"> 38 <input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"> 39 <span class="bp-screen-reader-text"> 40 <?php 41 /* translators: accessibility text */ 42 esc_html_e( 'Select this notification', 'buddypress' ); 43 ?> 44 </span> 45 </label> 46 </td> 47 <td class="notification-description"><?php bp_the_notification_description(); ?></td> 48 <td class="notification-since"><?php bp_the_notification_time_since(); ?></td> 38 49 <td class="notification-actions"><?php bp_the_notification_action_links(); ?></td> 39 50 </tr> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/read.php
r12082 r13822 12 12 <?php if ( bp_has_notifications() ) : ?> 13 13 14 <h2 class="bp-screen-reader-text"><?php 15 /* translators: accessibility text */ 16 _e( 'Notifications', 'buddypress' ); 17 ?></h2> 14 <h2 class="bp-screen-reader-text"> 15 <?php 16 /* translators: accessibility text */ 17 esc_html_e( 'Notifications', 'buddypress' ); 18 ?> 19 </h2> 18 20 19 21 <div id="pag-top" class="pagination no-ajax"> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/unread.php
r12082 r13822 12 12 <?php if ( bp_has_notifications() ) : ?> 13 13 14 <h2 class="bp-screen-reader-text"><?php 15 /* translators: accessibility text */ 16 _e( 'Unread notifications', 'buddypress' ); 17 ?></h2> 14 <h2 class="bp-screen-reader-text"> 15 <?php 16 /* translators: accessibility text */ 17 esc_html_e( 'Unread notifications', 'buddypress' ); 18 ?> 19 </h2> 18 20 19 21 <div id="pag-top" class="pagination no-ajax"> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php
r12082 r13822 10 10 ?> 11 11 12 <h2><?php _e( 'Change Profile Photo', 'buddypress' ); ?></h2>12 <h2><?php esc_html_e( 'Change Profile Photo', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 23 23 <?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?> 24 24 25 <p><?php _e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></p> 25 <p> 26 <?php 27 printf( 28 esc_html__( 'Your profile photo will be used on your profile and throughout the site. If there is a %s associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ), 29 '<a href="http://gravatar.com">Gravatar</a>' 30 ); 31 ?> 32 </p> 26 33 27 34 <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data"> … … 30 37 31 38 <?php wp_nonce_field( 'bp_avatar_upload' ); ?> 32 <p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ); ?></p>39 <p><?php esc_html_e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ); ?></p> 33 40 34 41 <p id="avatar-upload"> 35 <label for="file" class="bp-screen-reader-text"><?php 36 /* translators: accessibility text */ 37 _e( 'Select an image', 'buddypress' ); 38 ?></label> 42 <label for="file" class="bp-screen-reader-text"> 43 <?php 44 /* translators: accessibility text */ 45 esc_html_e( 'Select an image', 'buddypress' ); 46 ?> 47 </label> 39 48 <input type="file" name="file" id="file" /> 40 49 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" /> … … 43 52 44 53 <?php if ( bp_get_user_has_avatar() ) : ?> 45 <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p>46 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>"><?php _e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>54 <p><?php esc_html_e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 55 <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 47 56 <?php endif; ?> 48 57 … … 51 60 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 52 61 53 <h5><?php _e( 'Crop Your New Profile Photo', 'buddypress' ); ?></h5>62 <h5><?php esc_html_e( 'Crop Your New Profile Photo', 'buddypress' ); ?></h5> 54 63 55 64 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" /> … … 83 92 <?php else : ?> 84 93 85 <p><?php _e( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, please create an account with <a href="https://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p> 94 <p> 95 <?php 96 printf( 97 esc_html__( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, please create an account with %s using the same email address as you used to register with this site.', 'buddypress' ), 98 '<a href="https://gravatar.com">Gravatar</a>' 99 ); 100 ?> 101 </p> 86 102 87 103 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-cover-image.php
r12082 r13822 10 10 ?> 11 11 12 <h2><?php _e( 'Change Cover Image', 'buddypress' ); ?></h2>12 <h2><?php esc_html_e( 'Change Cover Image', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 21 21 do_action( 'bp_before_profile_edit_cover_image' ); ?> 22 22 23 <p><?php _e( 'Your Cover Image will be used to customize the header of your profile.', 'buddypress' ); ?></p>23 <p><?php esc_html_e( 'Your Cover Image will be used to customize the header of your profile.', 'buddypress' ); ?></p> 24 24 25 25 <?php bp_attachments_get_template_part( 'cover-images/index' ); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
r12595 r13822 28 28 <?php 29 29 /* translators: %s: profile group name */ 30 printf( __( "Editing '%s' Profile Group", 'buddypress' ), bp_get_the_profile_group_name() );30 printf( esc_html__( "Editing '%s' Profile Group", 'buddypress' ), esc_html( bp_get_the_profile_group_name() ) ); 31 31 ?> 32 32 </h2> … … 63 63 <?php 64 64 printf( 65 __( 'This field can be seen by: %s', 'buddypress' ),66 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'65 esc_html__( 'This field can be seen by: %s', 'buddypress' ), 66 '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>' 67 67 ); 68 68 ?> 69 69 </span> 70 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>70 <button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php echo esc_html_x( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button> 71 71 </p> 72 72 73 73 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> 74 74 <fieldset> 75 <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>75 <legend><?php esc_html_e( 'Who can see this field?', 'buddypress' ) ?></legend> 76 76 77 77 <?php bp_profile_visibility_radio_buttons() ?> 78 78 79 79 </fieldset> 80 <button type="button" class="field-visibility-settings-close"><?php _e( 'Close', 'buddypress' ) ?></button>80 <button type="button" class="field-visibility-settings-close"><?php esc_html_e( 'Close', 'buddypress' ) ?></button> 81 81 </div> 82 82 <?php else : ?> … … 84 84 <?php 85 85 printf( 86 __( 'This field can be seen by: %s', 'buddypress' ),87 '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'86 esc_html__( 'This field can be seen by: %s', 'buddypress' ), 87 '<span class="current-visibility-level">' . esc_html( bp_get_the_profile_field_visibility_level_label() ) . '</span>' 88 88 ); 89 89 ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php
r12082 r13822 27 27 28 28 <div class="bp-widget wp-profile"> 29 <h2><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h2>29 <h2><?php bp_is_my_profile() ? esc_html_e( 'My Profile', 'buddypress' ) : printf( esc_html__( "%s's Profile", 'buddypress' ), esc_html( bp_get_displayed_user_fullname() ) ); ?></h2> 30 30 31 31 <table class="wp-profile-fields"> … … 34 34 35 35 <tr id="wp_displayname"> 36 <td class="label"><?php _e( 'Name', 'buddypress' ); ?></td>37 <td class="data"><?php echo $ud->display_name; ?></td>36 <td class="label"><?php esc_html_e( 'Name', 'buddypress' ); ?></td> 37 <td class="data"><?php echo esc_html( $ud->display_name ); ?></td> 38 38 </tr> 39 39 … … 43 43 44 44 <tr id="wp_desc"> 45 <td class="label"><?php _e( 'About Me', 'buddypress' ); ?></td>46 <td class="data"><?php echo $ud->user_description; ?></td>45 <td class="label"><?php esc_html_e( 'About Me', 'buddypress' ); ?></td> 46 <td class="data"><?php echo esc_html( $ud->user_description ); ?></td> 47 47 </tr> 48 48 … … 52 52 53 53 <tr id="wp_website"> 54 <td class="label"><?php _e( 'Website', 'buddypress' ); ?></td> 55 <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td> 54 <td class="label"><?php esc_html_e( 'Website', 'buddypress' ); ?></td> 55 <td class="data"> 56 <?php 57 // phpcs:ignore WordPress.Security.EscapeOutput 58 echo make_clickable( esc_url( $ud->user_url ) ); 59 ?> 60 </td> 56 61 </tr> 57 62 … … 61 66 62 67 <tr id="wp_jabber"> 63 <td class="label"><?php _e( 'Jabber', 'buddypress' ); ?></td>64 <td class="data"><?php echo $ud->jabber; ?></td>68 <td class="label"><?php esc_html_e( 'Jabber', 'buddypress' ); ?></td> 69 <td class="data"><?php echo esc_html( $ud->jabber ); ?></td> 65 70 </tr> 66 71 … … 70 75 71 76 <tr id="wp_aim"> 72 <td class="label"><?php _e( 'AOL Messenger', 'buddypress' ); ?></td>73 <td class="data"><?php echo $ud->aim; ?></td>77 <td class="label"><?php esc_html_e( 'AOL Messenger', 'buddypress' ); ?></td> 78 <td class="data"><?php echo esc_html( $ud->aim ); ?></td> 74 79 </tr> 75 80 … … 79 84 80 85 <tr id="wp_yim"> 81 <td class="label"><?php _e( 'Yahoo Messenger', 'buddypress' ); ?></td>82 <td class="data"><?php echo $ud->yim; ?></td>86 <td class="label"><?php esc_html_e( 'Yahoo Messenger', 'buddypress' ); ?></td> 87 <td class="data"><?php echo esc_html( $ud->yim ); ?></td> 83 88 </tr> 84 89 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/capabilities.php
r13443 r13822 24 24 <label for="user-spammer"> 25 25 <input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> /> 26 <?php _e( 'This user is a spammer.', 'buddypress' ); ?>26 <?php esc_html_e( 'This user is a spammer.', 'buddypress' ); ?> 27 27 </label> 28 28 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/data.php
r13472 r13822 25 25 <?php 26 26 /* translators: %s: expiration date */ 27 printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), bp_settings_get_personal_data_expiration_date( $request) );27 printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), esc_html( bp_settings_get_personal_data_expiration_date( $request ) ) ); 28 28 ?> 29 29 </p> 30 30 31 <p><strong><?php printf( '<a href="%1$s">%2$s</a>', bp_settings_get_personal_data_export_url( $request), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p>31 <p><strong><?php printf( '<a href="%1$s">%2$s</a>', esc_url( bp_settings_get_personal_data_export_url( $request ) ), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p> 32 32 33 33 <?php else : ?> … … 37 37 38 38 <form id="bp-data-export" method="post"> 39 <input type="hidden" name="bp-data-export-delete-request-nonce" value="<?php echo wp_create_nonce( 'bp-data-export-delete-request'); ?>" />40 <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export'); ?>"><?php esc_html_e( 'Request new data export', 'buddypress' ); ?></button>39 <input type="hidden" name="bp-data-export-delete-request-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export-delete-request' ) ); ?>" /> 40 <button type="submit" name="bp-data-export-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export' ) ); ?>"><?php esc_html_e( 'Request new data export', 'buddypress' ); ?></button> 41 41 </form> 42 42 … … 48 48 <?php 49 49 /* translators: %s: confirmation date */ 50 printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), bp_settings_get_personal_data_confirmation_date( $request) );50 printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), esc_html( bp_settings_get_personal_data_confirmation_date( $request ) ) ); 51 51 ?> 52 52 </p> … … 64 64 65 65 <form id="bp-data-export" method="post"> 66 <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export'); ?>"><?php esc_html_e( 'Request personal data export', 'buddypress' ); ?></button>66 <button type="submit" name="bp-data-export-nonce" value="<?php echo esc_attr( wp_create_nonce( 'bp-data-export' ) ); ?>"><?php esc_html_e( 'Request personal data export', 'buddypress' ); ?></button> 67 67 </form> 68 68 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/delete-account.php
r13443 r13822 15 15 <?php if ( bp_is_my_profile() ) : ?> 16 16 17 <p><?php _e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p>17 <p><?php esc_html_e( 'Deleting your account will delete all of the content you have created. It will be completely irrecoverable.', 'buddypress' ); ?></p> 18 18 19 19 <?php else : ?> 20 20 21 <p><?php _e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p>21 <p><?php esc_html_e( 'Deleting this account will delete all of the content it has created. It will be completely irrecoverable.', 'buddypress' ); ?></p> 22 22 23 23 <?php endif; ?> … … 38 38 <label for="delete-account-understand"> 39 39 <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" /> 40 <?php _e( 'I understand the consequences.', 'buddypress' ); ?>40 <?php esc_html_e( 'I understand the consequences.', 'buddypress' ); ?> 41 41 </label> 42 42 -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php
r13443 r13822 11 11 do_action( 'bp_before_member_settings_template' ); ?> 12 12 13 <h2 class="bp-screen-reader-text"><?php 14 /* translators: accessibility text */ 15 _e( 'Account settings', 'buddypress' ); 16 ?></h2> 13 <h2 class="bp-screen-reader-text"> 14 <?php 15 /* translators: accessibility text */ 16 esc_html_e( 'Account settings', 'buddypress' ); 17 ?> 18 </h2> 17 19 18 20 <form action="<?php bp_displayed_user_link( array( bp_get_settings_slug(), 'general' ) ); ?>" method="post" class="standard-form" id="settings-form"> … … 20 22 <?php if ( ! is_super_admin() ) : ?> 21 23 22 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>23 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> <a href="<?php echo wp_lostpassword_url(); ?>"><?php_e( 'Lost your password?', 'buddypress' ); ?></a>24 <label for="pwd"><?php esc_html_e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label> 25 <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a> 24 26 25 27 <?php endif; ?> 26 28 27 <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>28 <input type="email" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/>29 <label for="email"><?php esc_html_e( 'Account Email', 'buddypress' ); ?></label> 30 <input type="email" name="email" id="email" value="<?php echo esc_attr( bp_get_displayed_user_email() ); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/> 29 31 30 <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>32 <label for="pass1"><?php printf( esc_html__( 'Change Password %s', 'buddypress' ), '<span>' . esc_html__( '(leave blank for no change)', 'buddypress' ) . '</span>' ); ?></label> 31 33 <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small password-entry" <?php bp_form_field_attributes( 'password' ); ?>/> 32 34 <div id="pass-strength-result"></div> 33 <label for="pass2"><?php _e( 'Repeat New Password', 'buddypress' );35 <label for="pass2"><?php esc_html_e( 'Repeat New Password', 'buddypress' ); 34 36 ?></label> 35 37 <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/notifications.php
r13443 r13822 11 11 do_action( 'bp_before_member_settings_template' ); ?> 12 12 13 <h2 class="bp-screen-reader-text"><?php 14 /* translators: accessibility text */ 15 _e( 'Notification settings', 'buddypress' ); 16 ?></h2> 13 <h2 class="bp-screen-reader-text"> 14 <?php 15 /* translators: accessibility text */ 16 esc_html_e( 'Notification settings', 'buddypress' ); 17 ?> 18 </h2> 17 19 18 20 <form action="<?php bp_displayed_user_link( array( bp_get_settings_slug(), 'notifications' ) ); ?>" method="post" class="standard-form" id="settings-form"> 19 <p><?php _e( 'Send an email notice when:', 'buddypress' ); ?></p>21 <p><?php esc_html_e( 'Send an email notice when:', 'buddypress' ); ?></p> 20 22 21 23 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php
r13443 r13822 15 15 do_action( 'bp_before_member_settings_template' ); ?> 16 16 17 <h2 class="bp-screen-reader-text"><?php 18 /* translators: accessibility text */ 19 _e( 'Profile visibility settings', 'buddypress' ); 20 ?></h2> 17 <h2 class="bp-screen-reader-text"> 18 <?php 19 /* translators: accessibility text */ 20 esc_html_e( 'Profile visibility settings', 'buddypress' ); 21 ?> 22 </h2> 21 23 22 24 <form action="<?php bp_displayed_user_link( array( bp_get_settings_slug(), 'profile' ) ); ?>" method="post" class="standard-form" id="settings-form"> … … 32 34 <tr> 33 35 <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 34 <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th>36 <th class="title"><?php esc_html_e( 'Visibility', 'buddypress' ); ?></th> 35 37 </tr> 36 38 </thead>
Note: See TracChangeset
for help on using the changeset viewer.