Changeset 7675 for trunk/bp-members/bp-members-functions.php
- Timestamp:
- 12/15/2013 02:44:35 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-members/bp-members-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-functions.php
r7572 r7675 1032 1032 1033 1033 // Make sure $value is array 1034 if ( empty( $value ) ) 1034 if ( empty( $value ) ) { 1035 1035 $db_illegal_names = array(); 1036 if ( is_array( $value ) ) 1036 } 1037 1038 if ( is_array( $value ) ) { 1037 1039 $db_illegal_names = $value; 1038 elseif ( is_string( $value ) )1040 } elseif ( is_string( $value ) ) { 1039 1041 $db_illegal_names = explode( ' ', $value ); 1042 } 1040 1043 1041 1044 // Add the core components' slugs to the banned list even if their components aren't active. … … 1050 1053 'search', 1051 1054 'settings', 1055 'notifications', 1052 1056 'register', 1053 1057 'activate' … … 1065 1069 'BP_SEARCH_SLUG', 1066 1070 'BP_SETTINGS_SLUG', 1071 'BP_NOTIFICATIONS_SLUG', 1067 1072 'BP_REGISTER_SLUG', 1068 1073 'BP_ACTIVATION_SLUG', 1069 1074 ); 1070 foreach( $slug_constants as $constant ) 1071 if ( defined( $constant ) ) 1075 foreach( $slug_constants as $constant ) { 1076 if ( defined( $constant ) ) { 1072 1077 $bp_component_slugs[] = constant( $constant ); 1078 } 1079 } 1073 1080 1074 1081 // Add our slugs to the array and allow them to be filtered
Note: See TracChangeset
for help on using the changeset viewer.