Skip to:
Content

BuddyPress.org


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

Fixes #2652 (trunk) props cnorris23

File:
1 edited

Legend:

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

    r3263 r3286  
    10811081add_filter( 'bp_create_excerpt', 'force_balance_tags' );
    10821082
    1083 /**
    1084  * bp_is_serialized()
    1085  *
    1086  * Checks to see if the data passed has been serialized.
    1087  *
    1088  * @package BuddyPress Core
    1089  * @param $data str The data that will be checked
    1090  * @return bool false if the data is not serialized
    1091  * @return bool true if the data is serialized
    1092  */
    1093 function bp_is_serialized( $data ) {
    1094     if ( '' == trim($data) )
    1095         return false;
    1096 
    1097     if ( preg_match( "/^(i|s|a|o|d)(.*);/si", $data ) )
    1098         return true;
    1099 
    1100     return false;
    1101 }
    1102 
    11031083function bp_total_member_count() {
    11041084    echo bp_get_total_member_count();
Note: See TracChangeset for help on using the changeset viewer.