Changeset 11606
- Timestamp:
- 06/22/2017 08:09:27 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-notifications.php
r11022 r11606 95 95 * @param int $user_id ID of the user who inited the interaction. 96 96 */ 97 $return = apply_filters( 'bp_activity_' . $amount . '_' . $action_filter . '_notification', '<a href="' . esc_url( $link ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $text ) . '</a>', $link, (int) $total_items, $activity_id, $user_id );97 $return = apply_filters( 'bp_activity_' . $amount . '_' . $action_filter . '_notification', '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', $link, (int) $total_items, $activity_id, $user_id ); 98 98 } else { 99 99 -
trunk/src/bp-activity/classes/class-bp-activity-list-table.php
r11414 r11606 593 593 $actions['reply'] = sprintf( '<a href="#" class="reply hide-if-no-js">%s</a>', __( 'Reply', 'buddypress' ) ); 594 594 } else { 595 $actions['reply'] = sprintf( '<span class="form-input-tip" title="%s">%s</span>', __( 'Replies are disabled for this activity item', 'buddypress' ), __( 'Replies disabled', 'buddypress' ) );595 $actions['reply'] = sprintf( '<span class="form-input-tip">%s</span>', __( 'Replies disabled', 'buddypress' ) ); 596 596 } 597 597 … … 707 707 // If the activity has comments, display a link to the activity's permalink, with its comment count in a speech bubble. 708 708 if ( $comment_count ) { 709 $title_attr = sprintf( _n( '%s related activity', '%s related activities', $comment_count, 'buddypress' ), number_format_i18n( $comment_count ) ); 710 printf( '<a href="%1$s" title="%2$s" class="post-com-count post-com-count-approved"><span class="comment-count comment-count-approved">%3$s</span></a>', esc_url( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) ); 709 printf( '<a href="%1$s" class="post-com-count post-com-count-approved"><span class="comment-count comment-count-approved">%2$s</span></a>', esc_url( $root_activity_url ), number_format_i18n( $comment_count ) ); 711 710 } 712 711 -
trunk/src/bp-core/admin/bp-core-admin-settings.php
r11593 r11606 272 272 <?php if ( false === $file_exists ) : ?> 273 273 274 <a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>" title="<?php esc_attr_e( 'Attempt to save a new config file.', 'buddypress' ); ?>"><?php _e( 'Repair', 'buddypress' ) ?></a>274 <a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>"><?php _e( 'Repair', 'buddypress' ) ?></a> 275 275 <span class="attention"><?php _e( 'File does not exist', 'buddypress' ); ?></span> 276 276 -
trunk/src/bp-core/classes/class-bp-core-user.php
r11447 r11606 158 158 $this->user_url = bp_core_get_user_domain( $this->id, $this->profile_data['user_nicename'], $this->profile_data['user_login'] ); 159 159 $this->fullname = esc_attr( $this->profile_data[$full_name_field_name]['field_data'] ); 160 $this->user_link = "<a href='{$this->user_url}' title='{$this->fullname}'>{$this->fullname}</a>";160 $this->user_link = "<a href='{$this->user_url}'>{$this->fullname}</a>"; 161 161 $this->email = esc_attr( $this->profile_data['user_email'] ); 162 162 } else { -
trunk/src/bp-forums/bp-forums-template.php
r10955 r11606 2653 2653 * @param string $value HTML link for the poster's name. 2654 2654 */ 2655 return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . $link . '" title="' . $topic_template->post->poster_name . '">' . $topic_template->post->poster_name. '</a>' );2655 return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . esc_url( $link ) . '">' . esc_html( $topic_template->post->poster_name ) . '</a>' ); 2656 2656 } 2657 2657 -
trunk/src/bp-groups/bp-groups-notifications.php
r11557 r11606 394 394 * @param string $notification_link The permalink for notification. 395 395 */ 396 return apply_filters( 'bp_groups_' . $amount . '_' . $action . 's_notification', '<a href="' . $notification_link . '" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link );396 return apply_filters( 'bp_groups_' . $amount . '_' . $action . 's_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link ); 397 397 } else { 398 398 … … 492 492 * @param string $notification_link The permalink for notification. 493 493 */ 494 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link );494 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link ); 495 495 } else { 496 496 … … 581 581 * @param string $notification_link The permalink for notification. 582 582 */ 583 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name );583 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name ); 584 584 } else { 585 585 … … 667 667 * @param string $notification_link The permalink for notification. 668 668 */ 669 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );669 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link ); 670 670 } else { 671 671 /** … … 749 749 * @param string $notification_link The permalink for notification. 750 750 */ 751 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );751 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link ); 752 752 } else { 753 753 /** … … 831 831 * @param string $notification_link The permalink for notification. 832 832 */ 833 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '" title="' . __( 'Group Invites', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );833 return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link ); 834 834 } else { 835 835 /** -
trunk/src/bp-groups/classes/class-bp-groups-invite-template.php
r11363 r11606 237 237 $this->invite->user->email = $this->invite->user->user_email; 238 238 $this->invite->user->user_url = bp_core_get_user_domain( $user_id, $this->invite->user->user_nicename, $this->invite->user->user_login ); 239 $this->invite->user->user_link = "<a href='{$this->invite->user->user_url}' title='{$this->invite->user->fullname}'>{$this->invite->user->fullname}</a>";239 $this->invite->user->user_link = "<a href='{$this->invite->user->user_url}'>{$this->invite->user->fullname}</a>"; 240 240 $this->invite->user->last_active = bp_core_get_last_activity( $this->invite->user->last_activity, __( 'active %s', 'buddypress' ) ); 241 241 -
trunk/src/bp-members/classes/class-bp-members-list-table.php
r10882 r11606 309 309 ); 310 310 311 echo $avatar . sprintf( '<strong><a href="%1$s" class="edit" title="%2$s">%3$s</a></strong><br/>', esc_url( $activate_link ), esc_attr__( 'Activate', 'buddypress'), $signup_object->user_login );311 echo $avatar . sprintf( '<strong><a href="%1$s" class="edit">%2$s</a></strong><br/>', esc_url( $activate_link ), $signup_object->user_login ); 312 312 313 313 $actions = array(); -
trunk/src/bp-members/classes/class-bp-members-ms-list-table.php
r10882 r11606 302 302 ); 303 303 304 echo $avatar . sprintf( '<strong><a href="%1$s" class="edit" title="%2$s">%3$s</a></strong><br/>', esc_url( $activate_link ), esc_attr__( 'Activate', 'buddypress'), $signup_object->user_login );304 echo $avatar . sprintf( '<strong><a href="%1$s" class="edit">%2$s</a></strong><br/>', esc_url( $activate_link ), $signup_object->user_login ); 305 305 306 306 $actions = array(); -
trunk/src/bp-messages/bp-messages-notifications.php
r11578 r11606 54 54 if ( 'string' === $format ) { 55 55 if ( ! empty( $link ) ) { 56 $return = '<a href="' . esc_url( $link ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $text ) . '</a>';56 $return = '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>'; 57 57 } else { 58 58 $return = esc_html( $text ); -
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11498 r11606 1496 1496 _e( 'Error joining group', 'buddypress' ); 1497 1497 } else { 1498 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '"href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';1498 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 1499 1499 } 1500 1500 … … 1509 1509 _e( 'Error requesting membership', 'buddypress' ); 1510 1510 } else { 1511 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '"href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';1511 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 1512 1512 } 1513 1513 … … 1519 1519 _e( 'Error requesting membership', 'buddypress' ); 1520 1520 } else { 1521 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" title="' . __( 'Request Sent', 'buddypress' ) . '"href="' . bp_get_group_permalink( $group ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>';1521 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>'; 1522 1522 } 1523 1523 } … … 1530 1530 _e( 'Error leaving group', 'buddypress' ); 1531 1531 } elseif ( 'public' == $group->status ) { 1532 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '"href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';1532 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group" rel="join" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>'; 1533 1533 } elseif ( 'private' == $group->status ) { 1534 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '"href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';1534 echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>'; 1535 1535 } 1536 1536 } -
trunk/src/bp-templates/bp-legacy/buddypress/forums/forums-loop.php
r11591 r11606 72 72 <tr class="<?php bp_the_topic_css_class(); ?>"> 73 73 <td class="td-title"> 74 <a class="topic-title" href="<?php bp_the_topic_permalink(); ?>" title="<?php esc_attr_e( 'Permanent link to this post', 'buddypress' ); ?>">74 <a class="topic-title" href="<?php bp_the_topic_permalink(); ?>"> 75 75 76 76 <?php bp_the_topic_title(); ?> … … 87 87 <?php 88 88 $topic_in = '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) . '</a>' . 89 '<a href="' . bp_get_the_topic_object_permalink() . '" title="' . bp_get_the_topic_object_name() . '">' . bp_get_the_topic_object_name() .'</a>';89 '<a href="' . bp_get_the_topic_object_permalink() . '">' . bp_get_the_topic_object_name() .'</a>'; 90 90 91 91 /* translators: "started by [poster] in [forum]" */ -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php
r11591 r11606 268 268 <?php if ( bp_get_group_member_is_banned() ) : ?> 269 269 270 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php esc_attr_e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>270 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban"><?php _e( 'Remove Ban', 'buddypress' ); ?></a> 271 271 272 272 <?php else : ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php
r11171 r11606 20 20 <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> 21 21 <div id="item-header-avatar"> 22 <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" title="<?php echo esc_attr( bp_get_group_name() ); ?>">22 <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>"> 23 23 24 24 <?php bp_group_avatar(); ?> -
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php
r11591 r11606 127 127 do_action( 'bp_group_forum_post_meta' ); ?> 128 128 129 <a href="#post-<?php bp_the_topic_post_id(); ?>" title="<?php esc_attr_e( 'Permanent link to this post', 'buddypress' ); ?>">#</a>129 <a href="#post-<?php bp_the_topic_post_id(); ?>" aria-label="<?php esc_attr_e( 'Permanent link to this post', 'buddypress' ); ?>">#</a> 130 130 </div> 131 131 </li> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/message.php
r10181 r11606 31 31 <?php if ( bp_get_the_thread_message_sender_link() ) : ?> 32 32 33 <strong><a href="<?php bp_the_thread_message_sender_link(); ?>" title="<?php bp_the_thread_message_sender_name(); ?>"><?php bp_the_thread_message_sender_name(); ?></a></strong>33 <strong><a href="<?php bp_the_thread_message_sender_link(); ?>"><?php bp_the_thread_message_sender_name(); ?></a></strong> 34 34 35 35 <?php else : ?> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php
r11591 r11606 75 75 <td width="10%"> 76 76 <a class="button" href="<?php bp_message_activate_deactivate_link(); ?>" class="confirm"><?php bp_message_activate_deactivate_text(); ?></a> 77 <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php esc_attr_e( "Delete Message", 'buddypress' ); ?>">x</a>77 <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" aria-label="<?php esc_attr_e( "Delete Message", 'buddypress' ); ?>">x</a> 78 78 </td> 79 79 </tr> -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php
r11576 r11606 42 42 </span> 43 43 44 <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Conversation", 'buddypress' ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>44 <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> 45 45 46 46 <?php -
trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php
r11591 r11606 20 20 21 21 <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label> 22 <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(); ?>" title="<?php esc_attr_e( 'Password Lost and Found', 'buddypress' ); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>22 <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> 23 23 24 24 <?php endif; ?> -
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r11601 r11606 1975 1975 1976 1976 if ( !i ) { 1977 jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' );1977 jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' ); 1978 1978 } 1979 1979 }
Note: See TracChangeset
for help on using the changeset viewer.