domain; $register_url = "http://premium.wpmudev.org/wp-admin/profile.php?page=ustapi&domain=$domain"; function ust_trim_array( $input ) { if ( ! is_array( $input ) ) { return trim( $input ); } return array_map( 'ust_trim_array', $input ); } //handle notice dismissal if ( isset( $_GET['dismiss'] ) ) { update_site_option( 'ust_key_dismiss', strtotime( "+1 month" ) ); ?>
' . __( sprintf( 'There was a problem with the API key you entered: "%s" Fix it here»', $api_response, $register_url ), 'ust' ) . '
'; } else if ( ! $api_response ) { $_POST['ust']['api_key'] = ''; echo '' . __( 'There was a problem connecting to the API server. Please try again later.', 'ust' ) . '
' . __( 'Settings Saved!', 'ust' ) . '