Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions includes/migration/class-fs-migration-endpoint-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,15 @@ protected function validate_all_params() {
'language',
'charset',
'platform_version',
'php_version',
) );

if ( ! isset( $this->_request_data[ 'php_version' ] ) &&
! isset( $this->_request_data[ 'programming_language_version' ] )
) {
$this->require_params( array( 'programming_language_version' ) );
}


$this->require_non_empty_params( array(
// License key.
'license_key',
Expand Down Expand Up @@ -970,4 +976,4 @@ abstract protected function local_to_remote_module( $local_module );
* @throws FS_Endpoint_Exception
*/
abstract protected function migrate_install_license();
}
}
4 changes: 3 additions & 1 deletion includes/migration/wc/class-fs-wc-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,9 @@ protected function get_install_for_api( $license_id ) {
$install['language'] = $this->_edd_install_data['language'];
$install['charset'] = $this->_edd_install_data['charset'];
$install['platform_version'] = $this->_edd_install_data['platform_version'];
$install['programming_language_version'] = $this->_edd_install_data['php_version'];
$install['programming_language_version'] = !empty($this->_edd_install_data['php_version']) ?
$this->_edd_install_data['php_version'] :
$this->_edd_install_data['programming_language_version'];
$install['license_id'] = $license_id;

$install_at = $this->ep->order->_purchase_time;
Expand Down