Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/24/2011 10:51:38 PM (15 years ago)
Author:
boonebgorges
Message:

Global/slug review in Settings and Messages component. See #3325

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-template.php

    r4829 r4842  
    344344}
    345345
     346/**
     347 * Echoes the form action for Messages HTML forms
     348 *
     349 * @package BuddyPress
     350 */
    346351function bp_messages_form_action() {
    347352    echo bp_get_messages_form_action();
    348353}
     354    /**
     355     * Returns the form action for Messages HTML forms
     356     *
     357     * @package BuddyPress
     358     *
     359     * @return str The form action
     360     */
    349361    function bp_get_messages_form_action() {
    350         global $bp;
    351 
    352         if ( isset( $bp->action_variables[0] ) )
    353             $av = $bp->action_variables[0];
    354         else
    355             $av = '';
    356 
    357         return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $av . '/' ) );
     362        return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) );
    358363    }
    359364
     
    719724
    720725    if ( !$thread_id && bp_is_current_component( 'messages' ) && bp_is_current_action( 'view' ) )
    721         $thread_id = (int)$bp->action_variables[0];
     726        $thread_id = (int)bp_action_variable( 0 );
    722727
    723728    $thread_template = new BP_Messages_Thread_Template( $thread_id, $order );
Note: See TracChangeset for help on using the changeset viewer.