Skip to:
Content

BuddyPress.org

Changeset 3285


Ignore:
Timestamp:
10/07/2010 09:28:54 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2652 (branch) props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-templatetags.php

    r3260 r3285  
    11321132add_filter( 'bp_create_excerpt', 'force_balance_tags' );
    11331133
    1134 /**
    1135  * bp_is_serialized()
    1136  *
    1137  * Checks to see if the data passed has been serialized.
    1138  *
    1139  * @package BuddyPress Core
    1140  * @param $data str The data that will be checked
    1141  * @return bool false if the data is not serialized
    1142  * @return bool true if the data is serialized
    1143  */
    1144 function bp_is_serialized( $data ) {
    1145     if ( '' == trim($data) )
    1146         return false;
    1147 
    1148     if ( preg_match( "/^(i|s|a|o|d)(.*);/si", $data ) )
    1149         return true;
    1150 
    1151     return false;
    1152 }
    1153 
    11541134function bp_total_member_count() {
    11551135    echo bp_get_total_member_count();
Note: See TracChangeset for help on using the changeset viewer.