Ticket #723: wire_slug_problem.patch
File wire_slug_problem.patch, 2.6 KB (added by , 15 years ago) |
---|
-
bp-wire.php
91 91 return false; 92 92 93 93 if ( !$table_name ) 94 $table_name = $bp-> {$component_name}->table_name_wire;94 $table_name = $bp->groups->table_name_wire; 95 95 96 96 $wire_post = new BP_Wire_Post( $table_name ); 97 97 $wire_post->item_id = $item_id; … … 123 123 return false; 124 124 125 125 if ( !$table_name ) 126 $table_name = $bp-> {$component_name}->table_name_wire;126 $table_name = $bp->groups->table_name_wire; 127 127 128 128 $wire_post = new BP_Wire_Post( $table_name, $wire_post_id ); 129 129 -
bp-wire/bp-wire-templatetags.php
28 28 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'xprofile', 'new_wire_post' ); 29 29 30 30 } else { 31 $this->table_name = $bp-> {$component_slug}->table_name_wire;31 $this->table_name = $bp->groups->table_name_wire; 32 32 } 33 33 34 34 $this->pag_page = isset( $_REQUEST['wpage'] ) ? intval( $_REQUEST['wpage'] ) : 1; … … 315 315 if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) { 316 316 return apply_filters( 'bp_get_wire_get_action', $bp->displayed_user->domain . $bp->wire->slug . '/post/' ); 317 317 } else { 318 return apply_filters( 'bp_get_wire_get_action', site_url() . '/' . $bp-> {$bp->current_component}->slug . '/' . $uri . '/' . $bp->wire->slug . '/post/' );318 return apply_filters( 'bp_get_wire_get_action', site_url() . '/' . $bp->groups->slug . '/' . $uri . '/' . $bp->wire->slug . '/post/' ); 319 319 } 320 320 } 321 321 … … 365 365 if ( $bp->wire->slug == $bp->current_component || $bp->profile->slug == $bp->current_component ) { 366 366 return apply_filters( 'bp_get_wire_delete_link', '<a href="' . wp_nonce_url( $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id, 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' ); 367 367 } else { 368 return apply_filters( 'bp_get_wire_delete_link', '<a href="' . wp_nonce_url( site_url( $bp-> {$bp->current_component}->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' );368 return apply_filters( 'bp_get_wire_delete_link', '<a href="' . wp_nonce_url( site_url( $bp->groups->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' ); 369 369 } 370 370 } 371 371 }