• Resolved ptroxler

    (@ptroxler)


    on line 17 in view.admin.php the URL for downloading a package is generated using the WordPress function get_home_url(). This breaks the functionality if WP is not installed in root, the function that should be used is get_site_url()

    Diff:

    --- ~/duplicator/inc/view.main.php
    +++ view.main.php
    @@ -14,15 +14,13 @@
    
     	function duplicator_get_download_link() {
    -		return get_home_url(null, '', is_ssl() ? 'https' : 'http') . '/' . DUPLICATOR_SSDIR_NAME . '/' ;
    +		return get_site_url(null, '', is_ssl() ? 'https' : 'http') . '/' . DUPLICATOR_SSDIR_NAME . '/' ;

    http://ww.wp.xz.cn/extend/plugins/duplicator/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Duplicator] Bug in view.main.php if site installed in subdir’ is closed to new replies.