Changeset 13443 for trunk/src/bp-messages/bp-messages-template.php
- Timestamp:
- 03/31/2023 05:26:39 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-template.php
r13442 r13443 973 973 */ 974 974 function bp_get_messages_form_action() { 975 $path_chunks = bp_members_get_path_chunks( array( bp_get_messages_slug(), bp_current_action(), bp_action_variable( 0 ) ) ); 976 $url = bp_displayed_user_url( $path_chunks ); 975 977 976 978 /** … … 979 981 * @since 1.0.0 980 982 * 981 * @param string $ valueThe form action.982 */ 983 return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ));983 * @param string $url The form action. 984 */ 985 return apply_filters( 'bp_get_messages_form_action',$url ); 984 986 } 985 987 … … 2299 2301 */ 2300 2302 function bp_get_the_thread_delete_link() { 2303 $path_chunks = bp_members_get_path_chunks( array( bp_get_messages_slug(), 'inbox', 'delete', bp_get_the_thread_id() ) ); 2304 $url = wp_nonce_url( bp_displayed_user_url( $path_chunks ), 'messages_delete_thread' ); 2301 2305 2302 2306 /** … … 2305 2309 * @since 1.0.0 2306 2310 * 2307 * @param string $value URL for deleting the current thread. 2308 * @param string $value Text indicating action being executed. 2309 */ 2310 return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/inbox/delete/' . bp_get_the_thread_id(), 'messages_delete_thread' ) ); 2311 * @param string $url URL for deleting the current thread. 2312 */ 2313 return apply_filters( 'bp_get_message_thread_delete_link', $url ); 2311 2314 } 2312 2315 … … 2327 2330 */ 2328 2331 function bp_get_the_thread_exit_link() { 2332 $path_chunks = bp_members_get_path_chunks( array( bp_get_messages_slug(), 'inbox', 'exit', bp_get_the_thread_id() ) ); 2333 $url = wp_nonce_url( bp_displayed_user_url( $path_chunks ), 'bp_messages_exit_thread' ); 2329 2334 2330 2335 /** 2331 2336 * Filters the URL to exit the current thread. 2332 2337 * 2333 * @since 1.0.0 2334 * 2335 * @param string $value URL to exit the current thread. 2336 * @param string $value Text indicating action being executed. 2337 */ 2338 return apply_filters( 'bp_get_the_thread_exit_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/inbox/exit/' . bp_get_the_thread_id(), 'bp_messages_exit_thread' ) ); 2338 * @since 10.0.0 2339 * 2340 * @param string $url URL to exit the current thread. 2341 */ 2342 return apply_filters( 'bp_get_the_thread_exit_link', $url ); 2339 2343 } 2340 2344
Note: See TracChangeset
for help on using the changeset viewer.