Skip to:
Content

BuddyPress.org

Changeset 7580


Ignore:
Timestamp:
11/16/2013 03:15:40 AM (11 years ago)
Author:
boonebgorges
Message:

Use the correct function to create timestamp permalinks in Activity admin

The previous method of concatenating activity permalink URLs did not account
for activity comments, which do not have their own permalinks but instead
appear on the permalink pages of their root parents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r7579 r7580  
    13461346
    13471347        /* translators: 2: activity admin ui date/time */
    1348         printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>', 'buddypress' ), bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $item['id'] . '/', get_date_from_gmt( $item['date_recorded'], get_option( 'date_format' ) ), get_date_from_gmt( $item['date_recorded'], get_option( 'time_format' ) ) );
     1348        printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'] ), get_date_from_gmt( $item['date_recorded'], get_option( 'date_format' ) ), get_date_from_gmt( $item['date_recorded'], get_option( 'time_format' ) ) );
    13491349
    13501350        // End timestamp
Note: See TracChangeset for help on using the changeset viewer.