Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2010 08:00:33 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove all references to Wire component (addresses #1618). This code has been moved to backpat.

File:
1 edited

Legend:

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

    r2325 r2343  
    10351035}
    10361036
    1037 function bp_profile_wire_can_post() {
    1038     global $bp;
    1039 
    1040     if ( bp_is_home() )
    1041         return true;
    1042 
    1043     if ( function_exists('friends_install') ) {
    1044         if ( friends_check_friendship( $bp->loggedin_user->id, $bp->displayed_user->id ) )
    1045             return true;
    1046         else
    1047             return false;
    1048     }
    1049 
    1050     return true;
    1051 }
    1052 
    10531037function bp_nav_items() {
    10541038    global $bp;
     
    13951379}
    13961380
    1397 function bp_is_wire_component() {
    1398     global $bp;
    1399 
    1400     if ( BP_WIRE_SLUG == $bp->current_action || in_array( BP_WIRE_SLUG, (array)$bp->action_variables ) )
    1401         return true;
    1402 
    1403     return false;
    1404 }
    1405 
    14061381function bp_is_messages_component() {
    14071382    global $bp;
     
    15031478}
    15041479
    1505 function bp_is_profile_wire() {
    1506     global $bp;
    1507 
    1508     if ( BP_XPROFILE_SLUG == $bp->current_component && 'wire' == $bp->current_action )
    1509         return true;
    1510 
    1511     return false;
    1512 }
    1513 
    15141480function bp_is_user_groups() {
    15151481    global $bp;
     
    15531519
    15541520    if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'admin' == $bp->current_action )
    1555         return true;
    1556 
    1557     return false;
    1558 }
    1559 
    1560 function bp_is_group_wire() {
    1561     global $bp;
    1562 
    1563     if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'wire' == $bp->current_action )
    15641521        return true;
    15651522
     
    17961753            $bp_classes[] = 'blogs';
    17971754
    1798         if ( bp_is_wire_component() && !bp_is_blog_page()  )
    1799             $bp_classes[] = 'wire';
    1800 
    18011755        if ( bp_is_messages_component() && !bp_is_blog_page()  )
    18021756            $bp_classes[] = 'messages';
     
    18651819            $bp_classes[] = 'group-forum';
    18661820
    1867         if ( bp_is_group_wire() )
    1868             $bp_classes[] = 'group-wire';
    1869 
    18701821        if ( bp_is_group_admin_page() )
    18711822            $bp_classes[] = 'group-admin';
     
    18761827        if ( bp_is_group_home() )
    18771828            $bp_classes[] = 'group-home';
    1878 
    1879         if ( bp_is_profile_wire() )
    1880             $bp_classes[] = 'profile-wire';
    18811829
    18821830        if ( bp_is_change_avatar() )
Note: See TracChangeset for help on using the changeset viewer.