Changeset 13436 for trunk/src/bp-activity/bp-activity-template.php
- Timestamp:
- 03/15/2023 08:16:46 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r13433 r13436 87 87 */ 88 88 function bp_get_activity_directory_permalink() { 89 $url = bp_rewrites_get_url( 90 array( 91 'component_id' => 'activity', 92 ) 93 ); 89 94 90 95 /** … … 95 100 * @param string $url Permalink url for the activity directory. 96 101 */ 97 return apply_filters( 'bp_get_activity_directory_permalink', trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() ));102 return apply_filters( 'bp_get_activity_directory_permalink', $url ); 98 103 } 99 104 … … 2393 2398 */ 2394 2399 function bp_get_activity_comment_delete_link() { 2395 $link = wp_nonce_url( trailingslashit( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() ) . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' ); 2400 $url = bp_rewrites_get_url( 2401 array( 2402 'component_id' => 'activity', 2403 'single_item_action' => 'delete', 2404 'single_item_action_variables' => array( bp_get_activity_comment_id() ), 2405 ) 2406 ); 2407 $link = wp_nonce_url( add_query_arg( 'cid', bp_get_activity_comment_id(), $url ), 'bp_activity_delete_link' ); 2396 2408 2397 2409 /** … … 2992 3004 } 2993 3005 2994 $url = trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/delete/' . $activity_id ); 3006 $url = bp_rewrites_get_url( 3007 array( 3008 'component_id' => 'activity', 3009 'single_item_action' => 'delete', 3010 'single_item_action_variables' => array( $activity_id ), 3011 ) 3012 ); 2995 3013 2996 3014 // Determine if we're on a single activity page, and customize accordingly. … … 3870 3888 */ 3871 3889 function bp_get_sitewide_activity_feed_link() { 3890 $url = bp_rewrites_get_url( 3891 array( 3892 'component_id' => 'activity', 3893 'single_item_action' => 'feed', 3894 ) 3895 ); 3872 3896 3873 3897 /** … … 3876 3900 * @since 1.0.0 3877 3901 * 3878 * @param string $ valueThe feed link for sitewide activity.3879 */ 3880 return apply_filters( 'bp_get_sitewide_activity_feed_link', bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/');3902 * @param string $url The feed link for sitewide activity. 3903 */ 3904 return apply_filters( 'bp_get_sitewide_activity_feed_link', $url ); 3881 3905 } 3882 3906
Note: See TracChangeset
for help on using the changeset viewer.