Changeset 16365 for trunk/wp-includes/user.php
- Timestamp:
- 11/14/2010 03:50:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r16353 r16365 1149 1149 * 1150 1150 * @since 2.3.0 1151 * @uses apply_filters() Calls 'edit_$field' and ' ${field_no_prefix}_edit_pre' passing $value and1151 * @uses apply_filters() Calls 'edit_$field' and '{$field_no_prefix}_edit_pre' passing $value and 1152 1152 * $user_id if $context == 'edit' and field name prefix == 'user_'. 1153 1153 * 1154 1154 * @uses apply_filters() Calls 'edit_user_$field' passing $value and $user_id if $context == 'db'. 1155 1155 * @uses apply_filters() Calls 'pre_$field' passing $value if $context == 'db' and field name prefix == 'user_'. 1156 * @uses apply_filters() Calls ' ${field}_pre' passing $value if $context == 'db' and field name prefix != 'user_'.1156 * @uses apply_filters() Calls '{$field}_pre' passing $value if $context == 'db' and field name prefix != 'user_'. 1157 1157 * 1158 1158 * @uses apply_filters() Calls '$field' passing $value, $user_id and $context if $context == anything … … 1187 1187 if ( 'edit' == $context ) { 1188 1188 if ( $prefixed ) { 1189 $value = apply_filters("edit_ $field", $value, $user_id);1189 $value = apply_filters("edit_{$field}", $value, $user_id); 1190 1190 } else { 1191 $value = apply_filters("edit_user_ $field", $value, $user_id);1191 $value = apply_filters("edit_user_{$field}", $value, $user_id); 1192 1192 } 1193 1193 … … 1198 1198 } else if ( 'db' == $context ) { 1199 1199 if ( $prefixed ) { 1200 $value = apply_filters("pre_ $field", $value);1200 $value = apply_filters("pre_{$field}", $value); 1201 1201 } else { 1202 $value = apply_filters("pre_user_ $field", $value);1202 $value = apply_filters("pre_user_{$field}", $value); 1203 1203 } 1204 1204 } else { … … 1207 1207 $value = apply_filters($field, $value, $user_id, $context); 1208 1208 else 1209 $value = apply_filters("user_ $field", $value, $user_id, $context);1209 $value = apply_filters("user_{$field}", $value, $user_id, $context); 1210 1210 } 1211 1211
Note: See TracChangeset
for help on using the changeset viewer.