mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
- Edit the JavaScript file used by the xProfile Create field Administration screen to handle Field types requirements by showing/hiding screen metaboxes according to feature supports and to get ride of some jQuery deprecated methods. - Improve the xProfile Field API to take in account xProfile Field Types declared feature supports by adding two new methods to get (`BP_XProfile_Field->get_field_type_supports()`) & check (`BP_XProfile_Field->field_type_supports( $feature_name )`) the field type supported features. - The xProfile Create field Administration Screen Metaboxes displayed to set the field properties can now be disabled by the Field Type using the static variable `$supported_features`. See `tests/phpunit/assets/bptest-xprofile-field-type.php` for an example of use. - Improve the xProfile Field API to take in account the xProfile Field Types `visibility` property to use as default field visibility. NB: setting this Field Type visibility and its `allow_custom_visibility` feature support to `false`, a Field Type can now enforce the visibility to use for a field. - Introduce a new xProfile Fields loop argument `$hide_field_types` to avoid displaying fields according to an array of Field types. To customize this new argument you can use the `bp_before_has_profile_parse_args` filter for existing xProfile loop. For instance you can avoid to list xProfile fields according to their type from the WP-Admin/Extended profile screen checking the corresponding Administration Screen ID. - Add PHP unit tests to verify these improvements are working the right way. Props DJPaul, Offereins, needle, netweb, vapvarun See #7162 git-svn-id: https://buddypress.svn.wordpress.org/trunk@12868 cdf35c40-ae34-48e0-9cc9-0c9da1808c22 |
||
|---|---|---|
| .. | ||
| templates | ||
| attachment-extensions.php | ||
| bp-rest-api-controllers.php | ||
| bptest-xprofile-field-type.php | ||
| canola.jpg | ||
| group-extensions.php | ||
| invitations-extensions.php | ||
| phpunit-wp-config.php | ||
| test-image-large.jpg | ||
| upside-down.jpg | ||