Changeset 3285 for branches/1.2/bp-core/bp-core-templatetags.php
- Timestamp:
- 10/07/2010 09:28:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-templatetags.php
r3260 r3285 1132 1132 add_filter( 'bp_create_excerpt', 'force_balance_tags' ); 1133 1133 1134 /**1135 * bp_is_serialized()1136 *1137 * Checks to see if the data passed has been serialized.1138 *1139 * @package BuddyPress Core1140 * @param $data str The data that will be checked1141 * @return bool false if the data is not serialized1142 * @return bool true if the data is serialized1143 */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 1154 1134 function bp_total_member_count() { 1155 1135 echo bp_get_total_member_count();
Note: See TracChangeset
for help on using the changeset viewer.