get_profile( (int) $_GET['wpmdb-profile'] ); } else { $loaded_profile = $this->default_profile; } $is_default_profile = isset( $loaded_profile['default_profile'] ); $tracking_base = $this->is_pro ? 'MDB%2BPaid' : 'MDB%2BFree'; $convert_exclude_revisions = false; $convert_post_type_selection = false; if ( ! $is_default_profile ) { if ( isset( $loaded_profile['exclude_revisions'] ) ) { $convert_exclude_revisions = true; } /* We used to provide users the option of selecting which post types they'd like to migrate. * We found that our wording for this functionality was a little confusing so we switched it to instead read "Exclude Post Types" * Once we made the switch we needed a way of inverting their saved post type selection to instead exclude the select post types. * This was required to make their select compatible with the new "exclude" wording. * This is easy enough for "push" and "export" saved profile as we know which post types exist on the local system and * can easily invert the selection. Pull saved profiles is a little trickier. * $this->maybe_update_profile() is used to update deprecated profile options to their new values. * At the time of page request $this->maybe_update_profile() cannot be used to update a pull profile as we don't know which * post types exist on the remote machine. As such we invert this selection later using the $convert_post_type_selection flag below. */ if ( isset( $loaded_profile['post_type_migrate_option'] ) && 'migrate_select_post_types' == $loaded_profile['post_type_migrate_option'] && 'pull' == $loaded_profile['action'] ) { $convert_post_type_selection = true; } $loaded_profile = $this->maybe_update_profile( $loaded_profile, $_GET['wpmdb-profile'] ); } if ( false == $is_default_profile ) { $loaded_profile = wp_parse_args( $loaded_profile, $this->default_profile ); } $loaded_profile = wp_parse_args( $loaded_profile, $this->checkbox_options ); $breadcrumbs_params = array( 'loaded_profile' => $loaded_profile, 'is_default_profile' => $is_default_profile, ); ?>