Skip to:
Content

BuddyPress.org

Ticket #6390: 6390.01.patch

File 6390.01.patch, 1.9 KB (added by johnjamesjacoby, 11 years ago)
  • src/bp-activity/bp-activity-admin.php

     
    12741274         * @since BuddyPress (1.6.0)
    12751275         */
    12761276        function get_views() {
    1277                 $url_base = bp_get_admin_url( 'admin.php?page=bp-activity' ); ?>
     1277                $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); ?>
    12781278
    12791279                <ul class="subsubsub">
    1280                         <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>
    1281                         <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>
     1280                        <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>
     1281                        <li class="spam"><a href="<?php echo esc_url( add_query_arg( array( '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>
    12821282
    12831283                        <?php
    12841284
  • src/bp-core/classes/class-bp-walker-nav-menu.php

     
    181181                $output .= $indent . '<li' . $id . $class_names . '>';
    182182
    183183                // Add href attribute
    184                 $attributes = ! empty( $item->link ) ? ' href="' . esc_attr( esc_url( $item->link ) ) . '"' : '';
     184                $attributes = ! empty( $item->link ) ? ' href="' . esc_url( $item->link ) . '"' : '';
    185185
    186186                // Construct the link
    187187                $item_output = $args->before;