Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2009 05:51:51 PM (17 years ago)
Author:
apeatling
Message:

Updating status updates so the JS will only load when a user is logged in and viewing their own profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-status/bp-status-templatetags.php

    r1567 r1577  
    66         * to "new".
    77         */
    8         if ( 'new' == $_GET['status'] ) {
     8        if ( 'new' == $_GET['status'] && is_user_logged_in() ) {
    99                load_template( TEMPLATEPATH . '/status/post-form.php' );
    1010        } else {
    11                 if ( 'clear' == $_GET['status'] )
     11                if ( 'clear' == $_GET['status'] && is_user_logged_in() )
    1212                        bp_status_clear_status();
    1313               
Note: See TracChangeset for help on using the changeset viewer.