Changeset 12868 for trunk/src/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 03/21/2021 02:17:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-cssjs.php
r12829 r12868 52 52 // "please enter options for this field" section. 53 53 $strings = array( 54 'do_settings_section_field_types' => array(), 55 'do_autolink' => '', 56 'text' => array( 54 'do_settings_section_field_types' => array(), 55 'do_autolink' => '', 56 'hide_do_autolink_metabox' => array(), 57 'hide_allow_custom_visibility_metabox' => array(), 58 'hide_required_metabox' => array(), 59 'hide_member_types_metabox' => array(), 60 'text' => array( 57 61 'defaultValue' => __( 'Default Value', 'buddypress' ), 58 62 'deleteLabel' => __( 'Delete', 'buddypress' ), … … 64 68 if ( $field->do_settings_section() ) { 65 69 $strings['do_settings_section_field_types'][] = $field_type; 70 } 71 72 if ( isset( $field::$supported_features ) && is_array( $field::$supported_features ) ) { 73 foreach ( $field::$supported_features as $feature => $support ) { 74 if ( isset( $strings['hide_' . $feature . '_metabox'] ) && ! $support ) { 75 $strings['hide_' . $feature . '_metabox'][] = $field_type; 76 } 77 } 66 78 } 67 79 }
Note: See TracChangeset
for help on using the changeset viewer.