Skip to:
Content

BuddyPress.org

Ticket #6911: 6911.2.patch

File 6911.2.patch, 2.3 KB (added by ramiy, 9 years ago)

better patch

  • src/bp-activity/bp-activity-admin.php

     
    704704                        </form>
    705705
    706706                <?php else : ?>
    707                         <p>
    708                                 <?php _e( 'No activity found with this ID.', 'buddypress' ); ?>
    709                                 <a href="<?php echo esc_url( bp_get_admin_url( 'admin.php?page=bp-activity' ) ); ?>"><?php _e( 'Go back and try again.', 'buddypress' ); ?></a>
    710                         </p>
     707
     708                        <p><?php
     709                                printf(
     710                                        '%1$s <a href="%2$s">%3$s</a>',
     711                                        __( 'No activity found with this ID.', 'buddypress' ),
     712                                        esc_url( bp_get_admin_url( 'admin.php?page=bp-activity' ) ),
     713                                        __( 'Go back and try again.', 'buddypress' )
     714                                );
     715                        ?></p>
     716
    711717                <?php endif; ?>
    712718
    713719        </div><!-- .wrap -->
  • src/bp-groups/bp-groups-admin.php

     
    625625                        </form>
    626626
    627627                <?php else : ?>
    628                         <p><?php printf( __( 'No group found with this ID. <a href="%s">Go back and try again</a>.', 'buddypress' ), esc_url( bp_get_admin_url( 'admin.php?page=bp-groups' ) ) ); ?></p>
     628
     629                        <p><?php
     630                                printf(
     631                                        '%1$s <a href="%2$s">%3$s</a>',
     632                                        __( 'No group found with this ID.', 'buddypress' ),
     633                                        esc_url( bp_get_admin_url( 'admin.php?page=bp-groups' ) ),
     634                                        __( 'Go back and try again.', 'buddypress' )
     635                                );
     636                        ?></p>
     637
    629638                <?php endif; ?>
    630639
    631640        </div><!-- .wrap -->
  • src/bp-members/classes/class-bp-members-admin.php

     
    934934
    935935                        <?php else : ?>
    936936
    937                                 <p><?php printf( __( 'No user found with this ID. <a href="%s">Go back and try again</a>.', 'buddypress' ), esc_url( bp_get_admin_url( 'users.php' ) ) ); ?></p>
     937                                <p><?php
     938                                        printf(
     939                                                '%1$s <a href="%2$s">%3$s</a>',
     940                                                __( 'No user found with this ID.', 'buddypress' ),
     941                                                esc_url( bp_get_admin_url( 'users.php' ) ),
     942                                                __( 'Go back and try again.', 'buddypress' )
     943                                        );
     944                                ?></p>
    938945
    939946                        <?php endif; ?>
    940947