buddypress/bp-xprofile
Boone B Gorges 2d9ebbd9f5 Prevent admin fiddling with Fullname field with properly narrow conditions.
BP prevents admins from editing the visibility and field type settings of the
Fullname field, because BP needs it to be public and a textarea. However, BP
was enforcing this edit block by checking the `can_delete` flag of the
BP_XProfile_Field object. In practice, it's usually the case that only field 1
will have the value of `can_delete = 0`. However - especially due to changes in
[7419] - other fields can have `can_delete = 0` as well. The edit block should
therefore be more specific, based on the ID of the field rather than on the
value of can_delete.

Fixes #5237

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7564 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2013-11-12 16:10:24 +00:00
..
admin Compress scripts/styles: 1.9-alpha-7287. 2013-07-18 21:57:18 +00:00
bp-xprofile-actions.php Theme Compatibility: 2012-09-03 01:33:13 +00:00
bp-xprofile-activity.php Quick audit of existing phpDoc @param, @return, and @since parameters. Fixes #5031 2013-06-19 21:41:08 +00:00
bp-xprofile-admin.php In XProfile admin, replace admin.php links with users.php. Fixes regression from 1.6 when profile fields were moved out of Settings and into Users, causing the "Profile Fields" menu item to not appear currently selected. See #5094. 2013-07-11 17:28:38 +00:00
bp-xprofile-buddybar.php EOF: 2012-09-18 18:03:00 +00:00
bp-xprofile-cache.php EOF: 2012-09-18 18:03:00 +00:00
bp-xprofile-caps.php EOF: 2012-09-18 18:03:00 +00:00
bp-xprofile-classes.php Prevent admin fiddling with Fullname field with properly narrow conditions. 2013-11-12 16:10:24 +00:00
bp-xprofile-cssjs.php EOF: 2012-09-18 18:03:00 +00:00
bp-xprofile-filters.php Documentation and WP coding standards in xprofile_filter_comments() 2012-12-17 17:55:30 +00:00
bp-xprofile-functions.php Sanitize more gently in component *_update_meta() functions 2013-10-23 18:47:16 +00:00
bp-xprofile-loader.php Friendlier, shorter visibility level labels for XProfile fields, to stay consistent with existing verbiage usages. 2013-11-04 03:01:08 +00:00
bp-xprofile-screens.php After successful avatar crop, redirect to user domain 2013-08-29 13:16:24 +00:00
bp-xprofile-template.php Populate registration field visibility settings from $_POST, if available 2013-06-04 13:45:23 +00:00