Changeset 9773
- Timestamp:
- 04/20/2015 04:08:00 PM (10 years ago)
- Location:
- branches/2.2/src
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-activity/bp-activity-admin.php
r9592 r9773 650 650 <?php if ( ! empty( $activity ) ) : ?> 651 651 652 <form action="<?php echo esc_ attr( $form_url ); ?>" id="bp-activities-edit-form" method="post">652 <form action="<?php echo esc_url( $form_url ); ?>" id="bp-activities-edit-form" method="post"> 653 653 <div id="poststuff"> 654 654 … … 1280 1280 1281 1281 <ul class="subsubsub"> 1282 <li class="all"><a href="<?php echo esc_ attr( esc_url( $url_base )); ?>" class="<?php if ( 'spam' != $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li>1283 <li class="spam"><a href="<?php echo esc_ attr( esc_url( add_query_arg( 'activity_status', 'spam', $url_base )) ); ?>" class="<?php if ( 'spam' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Spam <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->spam_count ) ); ?></a></li>1282 <li class="all"><a href="<?php echo esc_url( $url_base ); ?>" class="<?php if ( 'spam' != $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> 1283 <li class="spam"><a href="<?php echo esc_url( add_query_arg( 'activity_status', 'spam', $url_base ) ); ?>" class="<?php if ( 'spam' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Spam <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->spam_count ) ); ?></a></li> 1284 1284 1285 1285 <?php -
branches/2.2/src/bp-activity/bp-activity-functions.php
r9384 r9773 1367 1367 1368 1368 if ( is_multisite() ) { 1369 $blog_link = '<a href="' . $blog_url. '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>';1369 $blog_link = '<a href="' . esc_url( $blog_url ) . '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>'; 1370 1370 1371 1371 if ( ! empty( $bp->activity->track[ $activity->type ]->new_post_type_action_ms ) ) { 1372 1372 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action_ms, $user_link, $post_url, $blog_link ); 1373 1373 } else { 1374 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>, on the site %3$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_url, $blog_link );1374 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>, on the site %3$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, esc_url( $post_url ), $blog_link ); 1375 1375 } 1376 1376 } else { … … 1378 1378 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action, $user_link, $post_url ); 1379 1379 } else { 1380 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_url);1380 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, esc_url( $post_url ) ); 1381 1381 } 1382 1382 } -
branches/2.2/src/bp-activity/bp-activity-template.php
r9729 r9773 309 309 if ( (int) $this->total_activity_count && (int) $this->pag_num ) { 310 310 $this->pag_links = paginate_links( array( 311 'base' => add_query_arg( $ page_arg, '%#%' ),311 'base' => add_query_arg( $this->pag_arg, '%#%' ), 312 312 'format' => '', 313 313 'total' => ceil( (int) $this->total_activity_count / (int) $this->pag_num ), … … 2977 2977 * @uses bp_is_activity_component() 2978 2978 * @uses bp_current_action() 2979 * @uses add_query_arg()2980 2979 * @uses wp_get_referer() 2981 2980 * @uses wp_nonce_url() … … 3222 3221 $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component ); 3223 3222 3224 $component_links[] = $before . '<a href="' . esc_ attr( $link ) . '">' . ucwords( $component ) . '</a>' . $after;3223 $component_links[] = $before . '<a href="' . esc_url( $link ) . '">' . ucwords( $component ) . '</a>' . $after; 3225 3224 } 3226 3225 … … 3228 3227 3229 3228 if ( isset( $_GET['afilter'] ) ) 3230 $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_ attr( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';3229 $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_url( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>'; 3231 3230 3232 3231 /** … … 3472 3471 */ 3473 3472 function bp_send_public_message_link() { 3474 echo bp_get_send_public_message_link();3473 echo esc_url( bp_get_send_public_message_link() ); 3475 3474 } 3476 3475 -
branches/2.2/src/bp-blogs/bp-blogs-activity.php
r9369 r9773 175 175 176 176 // Build the 'post link' part of the activity action string 177 $post_link = '<a href="' . $post_url. '">' . $post_title . '</a>';177 $post_link = '<a href="' . esc_url( $post_url ) . '">' . $post_title . '</a>'; 178 178 179 179 $user_link = bp_core_get_userlink( $activity->user_id ); … … 252 252 } 253 253 254 $post_link = '<a href="' . $post_url. '">' . $post_title . '</a>';254 $post_link = '<a href="' . esc_url( $post_url ) . '">' . $post_title . '</a>'; 255 255 $user_link = bp_core_get_userlink( $activity->user_id ); 256 256 -
branches/2.2/src/bp-blogs/bp-blogs-template.php
r9413 r9773 902 902 */ 903 903 function bp_blog_latest_post_permalink() { 904 echo bp_get_blog_latest_post_permalink();904 echo esc_url( bp_get_blog_latest_post_permalink() ); 905 905 } 906 906 /** -
branches/2.2/src/bp-core/admin/bp-core-components.php
r9609 r9773 142 142 143 143 <ul class="subsubsub"> 144 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'all' ), bp_get_admin_url( $page) ); ?>" <?php if ( $action === 'all' ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), number_format_i18n( $all_count ) ); ?></a> | </li>145 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'active' ), bp_get_admin_url( $page) ); ?>" <?php if ( $action === 'active' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), number_format_i18n( count( $active_components ) ) ); ?></a> | </li>146 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'inactive' ), bp_get_admin_url( $page) ); ?>" <?php if ( $action === 'inactive' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), number_format_i18n( count( $inactive_components ) ) ); ?></a> | </li>147 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'mustuse' ), bp_get_admin_url( $page) ); ?>" <?php if ( $action === 'mustuse' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), number_format_i18n( count( $required_components ) ) ); ?></a> | </li>148 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'retired' ), bp_get_admin_url( $page) ); ?>" <?php if ( $action === 'retired' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Retired <span class="count">(%s)</span>', 'Retired <span class="count">(%s)</span>', count( $retired_components ), 'buddypress' ), number_format_i18n( count( $retired_components ) ) ); ?></a></li>144 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'all' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'all' ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), number_format_i18n( $all_count ) ); ?></a> | </li> 145 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'active' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'active' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), number_format_i18n( count( $active_components ) ) ); ?></a> | </li> 146 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'inactive' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'inactive' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), number_format_i18n( count( $inactive_components ) ) ); ?></a> | </li> 147 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'mustuse' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'mustuse' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), number_format_i18n( count( $required_components ) ) ); ?></a> | </li> 148 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'retired' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'retired' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Retired <span class="count">(%s)</span>', 'Retired <span class="count">(%s)</span>', count( $retired_components ), 'buddypress' ), number_format_i18n( count( $retired_components ) ) ); ?></a></li> 149 149 </ul> 150 150 -
branches/2.2/src/bp-core/admin/bp-core-functions.php
r9351 r9773 106 106 107 107 <p><?php _e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", 'buddypress' ); ?></p> 108 <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', 'buddypress' ), esc_url( $settings_url ), bp_get_admin_url( 'users.php?page=bp-profile-setup') ); ?></p>108 <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', 'buddypress' ), esc_url( $settings_url ), esc_url( bp_get_admin_url( 'users.php?page=bp-profile-setup' ) ) ); ?></p> 109 109 </div> 110 110 … … 299 299 if ( !empty( $orphaned_components ) ) { 300 300 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ); 301 $notice = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' );301 $notice = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), esc_url( $admin_url ), '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' ); 302 302 303 303 bp_core_add_admin_notice( $notice ); … … 321 321 if ( !empty( $dupe_names ) ) { 322 322 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ); 323 $notice = sprintf( __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>' );323 $notice = sprintf( __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), usc_url( $admin_url ), '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>' ); 324 324 325 325 bp_core_add_admin_notice( $notice ); -
branches/2.2/src/bp-core/admin/bp-core-settings.php
r9351 r9773 243 243 <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Settings', 'buddypress' ) ); ?></h2> 244 244 245 <form action="<?php echo $form_action?>" method="post">245 <form action="<?php echo esc_url( $form_action ); ?>" method="post"> 246 246 247 247 <?php settings_fields( 'buddypress' ); ?> -
branches/2.2/src/bp-core/bp-core-admin.php
r9429 r9773 440 440 // Add a few links to the existing links array 441 441 return array_merge( $links, array( 442 'settings' => '<a href="' . add_query_arg( array( 'page' => 'bp-components' ), bp_get_admin_url( $this->settings_page) ) . '">' . esc_html__( 'Settings', 'buddypress' ) . '</a>',443 'about' => '<a href="' . add_query_arg( array( 'page' => 'bp-about' ), bp_get_admin_url( 'index.php') ) . '">' . esc_html__( 'About', 'buddypress' ) . '</a>'442 'settings' => '<a href="' . esc_url( add_query_arg( array( 'page' => 'bp-components' ), bp_get_admin_url( $this->settings_page ) ) ) . '">' . esc_html__( 'Settings', 'buddypress' ) . '</a>', 443 'about' => '<a href="' . esc_url( add_query_arg( array( 'page' => 'bp-about' ), bp_get_admin_url( 'index.php' ) ) ) . '">' . esc_html__( 'About', 'buddypress' ) . '</a>' 444 444 ) ); 445 445 } … … 508 508 <ul> 509 509 <li><?php printf( 510 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Set Up Components', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page) )510 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Set Up Components', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ) ) 511 511 ); ?></li> 512 512 <li><?php printf( 513 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Assign Components to Pages', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), $this->settings_page) )513 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Assign Components to Pages', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), $this->settings_page ) ) ) 514 514 ); ?></li> 515 515 <li><?php printf( 516 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Customize Settings', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), $this->settings_page) )516 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Customize Settings', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), $this->settings_page ) ) ) 517 517 ); ?></li> 518 518 </ul> … … 523 523 <ul> 524 524 <?php if ( bp_is_active( 'members' ) ) : ?> 525 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add User Profile Fields', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), 'users.php') ) ); ?></li>525 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add User Profile Fields', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), 'users.php' ) ) ) ); ?></li> 526 526 <?php endif; ?> 527 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage User Signups', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-signups' ), 'users.php') ) ); ?></li>527 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage User Signups', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-signups' ), 'users.php' ) ) ) ); ?></li> 528 528 <?php if ( bp_is_active( 'activity' ) ) : ?> 529 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Moderate Activity Streams', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-activity' ), 'admin.php') ) ); ?></li>529 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Moderate Activity Streams', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-activity' ), 'admin.php' ) ) ) ); ?></li> 530 530 <?php endif; ?> 531 531 <?php if ( bp_is_active( 'groups' ) ) : ?> 532 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage Groups', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-groups' ), 'admin.php') ) ); ?></li>532 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage Groups', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-groups' ), 'admin.php' ) ) ) ); ?></li> 533 533 <?php endif; ?> 534 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Repair Data', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-tools' ), 'tools.php') ) ); ?>534 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Repair Data', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-tools' ), 'tools.php' ) ) ) ); ?> 535 535 </li> 536 536 </ul> -
branches/2.2/src/bp-core/bp-core-catchuri.php
r9428 r9773 500 500 501 501 $url = $root; 502 if ( !empty( $redirect ) ) 502 if ( !empty( $redirect ) ) { 503 503 $url = add_query_arg( 'redirect_to', urlencode( $redirect ), $root ); 504 } 504 505 505 506 if ( !empty( $message ) ) { -
branches/2.2/src/bp-core/bp-core-classes.php
r9663 r9773 2425 2425 2426 2426 // Add href attribute 2427 $attributes = ! empty( $item->link ) ? ' href="' . esc_ attr( esc_url( $item->link )) . '"' : '';2427 $attributes = ! empty( $item->link ) ? ' href="' . esc_url( $item->link ) . '"' : ''; 2428 2428 2429 2429 // Construct the link -
branches/2.2/src/bp-core/bp-core-functions.php
r9609 r9773 1424 1424 */ 1425 1425 function bp_admin_url( $path = '', $scheme = 'admin' ) { 1426 echo bp_get_admin_url( $path, $scheme);1426 echo esc_url( bp_get_admin_url( $path, $scheme ) ); 1427 1427 } 1428 1428 /** -
branches/2.2/src/bp-forums/bp-forums-template.php
r9383 r9773 1785 1785 */ 1786 1786 function bp_forum_topic_new_reply_link() { 1787 echo bp_get_forum_topic_new_reply_link();1787 echo esc_url( bp_get_forum_topic_new_reply_link() ); 1788 1788 } 1789 1789 /** -
branches/2.2/src/bp-groups/bp-groups-admin.php
r9591 r9773 536 536 <?php if ( ! empty( $group ) ) : ?> 537 537 538 <form action="<?php echo esc_ attr( $form_url ); ?>" id="bp-groups-edit-form" method="post">538 <form action="<?php echo esc_url( $form_url ); ?>" id="bp-groups-edit-form" method="post"> 539 539 <div id="poststuff"> 540 540 … … 628 628 <p><strong><?php _e( 'This action cannot be undone.', 'buddypress' ) ?></strong></p> 629 629 630 <a class="button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'do_delete', 'gid' => implode( ',', $gids ) ), $base_url ), 'bp-groups-delete' )?>"><?php _e( 'Delete Permanently', 'buddypress' ) ?></a>631 <a class="button" href="<?php echo esc_ attr( $base_url ); ?>"><?php _e( 'Cancel', 'buddypress' ) ?></a>630 <a class="button-primary" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'do_delete', 'gid' => implode( ',', $gids ) ), $base_url ), 'bp-groups-delete' ) ); ?>"><?php _e( 'Delete Permanently', 'buddypress' ) ?></a> 631 <a class="button" href="<?php echo esc_url( $base_url ); ?>"><?php _e( 'Cancel', 'buddypress' ) ?></a> 632 632 </div> 633 633 … … 917 917 <div id="major-publishing-actions"> 918 918 <div id="delete-action"> 919 <a class="submitdelete deletion" href="<?php echo wp_nonce_url( add_query_arg( 'action', 'delete', $base_url ), 'bp-groups-delete' )?>"><?php _e( 'Delete Group', 'buddypress' ) ?></a>919 <a class="submitdelete deletion" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'action', 'delete', $base_url ), 'bp-groups-delete' ) ); ?>"><?php _e( 'Delete Group', 'buddypress' ) ?></a> 920 920 </div> 921 921 … … 1303 1303 1304 1304 <ul class="subsubsub"> 1305 <li class="all"><a href="<?php echo esc_ attr( esc_url( $url_base )); ?>" class="<?php if ( 'all' == $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li>1306 <li class="public"><a href="<?php echo esc_ attr( esc_url( add_query_arg( 'group_status', 'public', $url_base )) ); ?>" class="<?php if ( 'public' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Public <span class="count">(%s)</span>', 'Public <span class="count">(%s)</span>', $this->group_counts['public'], 'buddypress' ), number_format_i18n( $this->group_counts['public'] ) ); ?></a> |</li>1307 <li class="private"><a href="<?php echo esc_ attr( esc_url( add_query_arg( 'group_status', 'private', $url_base )) ); ?>" class="<?php if ( 'private' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', $this->group_counts['private'], 'buddypress' ), number_format_i18n( $this->group_counts['private'] ) ); ?></a> |</li>1308 <li class="hidden"><a href="<?php echo esc_ attr( esc_url( add_query_arg( 'group_status', 'hidden', $url_base )) ); ?>" class="<?php if ( 'hidden' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Hidden <span class="count">(%s)</span>', 'Hidden <span class="count">(%s)</span>', $this->group_counts['hidden'], 'buddypress' ), number_format_i18n( $this->group_counts['hidden'] ) ); ?></a></li>1305 <li class="all"><a href="<?php echo esc_url( $url_base ); ?>" class="<?php if ( 'all' == $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> 1306 <li class="public"><a href="<?php echo esc_url( add_query_arg( 'group_status', 'public', $url_base ) ); ?>" class="<?php if ( 'public' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Public <span class="count">(%s)</span>', 'Public <span class="count">(%s)</span>', $this->group_counts['public'], 'buddypress' ), number_format_i18n( $this->group_counts['public'] ) ); ?></a> |</li> 1307 <li class="private"><a href="<?php echo esc_url( add_query_arg( 'group_status', 'private', $url_base ) ); ?>" class="<?php if ( 'private' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', $this->group_counts['private'], 'buddypress' ), number_format_i18n( $this->group_counts['private'] ) ); ?></a> |</li> 1308 <li class="hidden"><a href="<?php echo esc_url( add_query_arg( 'group_status', 'hidden', $url_base ) ); ?>" class="<?php if ( 'hidden' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Hidden <span class="count">(%s)</span>', 'Hidden <span class="count">(%s)</span>', $this->group_counts['hidden'], 'buddypress' ), number_format_i18n( $this->group_counts['hidden'] ) ); ?></a></li> 1309 1309 1310 1310 <?php do_action( 'bp_groups_list_table_get_views', $url_base, $this->view ); ?> -
branches/2.2/src/bp-members/admin/bp-members-classes.php
r9351 r9773 98 98 // Remove the 'current' class from the 'All' link 99 99 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 100 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php') ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) );100 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) ); 101 101 102 102 return $views; … … 463 463 // Remove the 'current' class from the 'All' link 464 464 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 465 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php') ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) );465 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) ); 466 466 467 467 return $views; -
branches/2.2/src/bp-members/bp-members-admin.php
r9397 r9773 1175 1175 // Add query args and setup the Extended link 1176 1176 $edit_profile = add_query_arg( $args, $this->edit_profile_url ); 1177 $edit_profile_link = sprintf( '<a href="%1$s">%2$s</a>', 1177 $edit_profile_link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( $edit_profile ), esc_html__( 'Extended', 'buddypress' ) ); 1178 1178 1179 1179 /** … … 1330 1330 $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' ); 1331 1331 1332 $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', $url, $class, $text );1332 $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), $class, $text ); 1333 1333 1334 1334 return $views; -
branches/2.2/src/bp-members/bp-members-functions.php
r9534 r9773 2303 2303 ); 2304 2304 2305 $resend_string = '<br /><br />' . sprintf( __( 'If you have not received an email yet, <a href="%s">click here to resend it</a>.', 'buddypress' ), $resend_url);2305 $resend_string = '<br /><br />' . sprintf( __( 'If you have not received an email yet, <a href="%s">click here to resend it</a>.', 'buddypress' ), esc_url( $resend_url ) ); 2306 2306 2307 2307 return new WP_Error( 'bp_account_not_activated', __( '<strong>ERROR</strong>: Your account has not been activated. Check your email for the activation link.', 'buddypress' ) . $resend_string ); -
branches/2.2/src/bp-members/bp-members-template.php
r9412 r9773 2289 2289 */ 2290 2290 function bp_members_component_link( $component, $action = '', $query_args = '', $nonce = false ) { 2291 echo bp_get_members_component_link( $component, $action, $query_args, $nonce);2291 echo esc_url( bp_get_members_component_link( $component, $action, $query_args, $nonce ) ); 2292 2292 } 2293 2293 /**
Note: See TracChangeset
for help on using the changeset viewer.