Changeset 13108 for trunk/src/bp-messages/bp-messages-star.php
- Timestamp:
- 09/12/2021 08:43:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-star.php
r13096 r13108 97 97 : bp_loggedin_user_id(); 98 98 99 $r = bp_parse_args( $args, array( 100 'user_id' => (int) $user_id, 101 'thread_id' => 0, 102 'message_id' => (int) bp_get_the_thread_message_id(), 103 'url_only' => false, 104 'text_unstar' => __( 'Unstar', 'buddypress' ), 105 'text_star' => __( 'Star', 'buddypress' ), 106 'title_unstar' => __( 'Starred', 'buddypress' ), 107 'title_star' => __( 'Not starred', 'buddypress' ), 108 'title_unstar_thread' => __( 'Remove all starred messages in this thread', 'buddypress' ), 109 'title_star_thread' => __( 'Star the first message in this thread', 'buddypress' ), 110 ), 'messages_star_action_link' ); 99 $r = bp_parse_args( 100 $args, 101 array( 102 'user_id' => (int) $user_id, 103 'thread_id' => 0, 104 'message_id' => (int) bp_get_the_thread_message_id(), 105 'url_only' => false, 106 'text_unstar' => __( 'Unstar', 'buddypress' ), 107 'text_star' => __( 'Star', 'buddypress' ), 108 'title_unstar' => __( 'Starred', 'buddypress' ), 109 'title_star' => __( 'Not starred', 'buddypress' ), 110 'title_unstar_thread' => __( 'Remove all starred messages in this thread', 'buddypress' ), 111 'title_star_thread' => __( 'Star the first message in this thread', 'buddypress' ), 112 ), 113 'messages_star_action_link' 114 ); 111 115 112 116 // Check user ID and determine base user URL. … … 248 252 */ 249 253 function bp_messages_star_set_action( $args = array() ) { 250 $r = wp_parse_args( $args, array( 251 'action' => 'star', 252 'thread_id' => 0, 253 'message_id' => 0, 254 'user_id' => bp_displayed_user_id(), 255 'bulk' => false, 256 ) ); 254 $r = bp_parse_args( 255 $args, 256 array( 257 'action' => 'star', 258 'thread_id' => 0, 259 'message_id' => 0, 260 'user_id' => bp_displayed_user_id(), 261 'bulk' => false, 262 ) 263 ); 257 264 258 265 // Set thread ID.
Note: See TracChangeset
for help on using the changeset viewer.