• Justin Norton

    (@designerbydesign)


    Hello,

    Just trying out the plugin and it looks good.

    I have spotted an issue with the code whereby the default location is wrong – at least on my setup.

    Replace:

    // prefix with default location
    $default_upload_path = str_replace( ABSPATH, ‘/’, WP_CONTENT_DIR );

    With:

    // prefix with default location
    $upload_dir = wp_upload_dir();
    $default_upload_path = str_replace( ABSPATH, ‘/’, $upload_dir[‘basedir’] );

    Cheers ??

    • This topic was modified 7 years, 4 months ago by Justin Norton.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code amends’ is closed to new replies.