Changeset 10557 for trunk/src/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 02/08/2016 04:52:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-cssjs.php
r10417 r10557 53 53 $strings = array( 54 54 'supports_options_field_types' => array(), 55 'do_autolink' => '', 55 56 ); 56 57 … … 62 63 } 63 64 65 // Load 'autolink' setting into JS so that we can provide smart defaults when switching field type. 66 if ( ! empty( $_GET['field_id'] ) ) { 67 $field_id = intval( $_GET['field_id'] ); 68 69 // Pull the raw data from the DB so we can tell whether the admin has saved a value yet. 70 $strings['do_autolink'] = bp_xprofile_get_meta( $field_id, 'field', 'do_autolink' ); 71 } 72 64 73 wp_localize_script( 'xprofile-admin-js', 'XProfileAdmin', $strings ); 65 74 }
Note: See TracChangeset
for help on using the changeset viewer.