Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter mcEmmanuel

    (@mcemmanuel)

    Hi, analyzing the code I found it on line 374 of file upload.php to need to put the separator.

    current line:
    $attach_id = wp_insert_attachment( $attachment, $target_path . $name, $parent_id);

    updated line:
    $attach_id = wp_insert_attachment( $attachment, $target_path . DIRECTORY_SEPARATOR . $name, $parent_id);

Viewing 1 replies (of 1 total)