Support » Plugin: One Click Demo Import » Please fix some bugs and support dockerize

  • Please check and fix the code. Correct line 541, 551, 556

    And if deploy on docker, could not be imported if the host port is different from the local port.

    Example: When I run WordPress in Docker and expose port as 8080:80, the function ajax_download_file will use curl to download and could not access localhost:8080, cos that inside the container, localhost:8080 isn’t available. Should be localhost:80

    I have to hot fix like this:

    
    $dmTp = str_replace(':8080', '', $demo[$type]);
    
    $file = $this->download_file( $dmTp );
    

    Please consider to fix this or share the source, I can contribute to

    • This topic was modified 5 months, 2 weeks ago by lucduong.
    • This topic was modified 5 months, 2 weeks ago by lucduong.
    • This topic was modified 5 months, 2 weeks ago by lucduong.
  • You must be logged in to reply to this review.