Skip to content

Commit

Permalink
Removed hard-coded graduate slate GUIDs from the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Jun 3, 2020
1 parent 836d0de commit d1ecb8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 350 deletions.
11 changes: 0 additions & 11 deletions includes/degree-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,17 +942,6 @@ function get_degree_request_info_modal( $degree ) {

// Back out early if a GUID isn't assigned to the program.
$guid = get_field( 'graduate_slate_id', $degree );
if ( ! $guid ) {
// Retrieve GUID data that map plan+subplan codes to programs
// in the RFI form. Back out early if something fails.
// (This block will be removed in a future release)
$guid_data = file_get_contents( THEME_JS_DIR . '/guid.json' );
if ( $guid_data ) {
$degrees = json_decode( $guid_data, true );
$plan_sub_plan = get_field( 'degree_plan_code', $degree ) . get_field( 'degree_subplan_code', $degree );
$guid = $degrees[$plan_sub_plan];
}
}
if ( ! $guid ) return '';

$form_div_id = 'form_bad6c39a-5c60-4895-9128-5785ce014085';
Expand Down
Loading

0 comments on commit d1ecb8d

Please sign in to comment.