• Resolved rsepierre

    (@rsepierre)


    On windows servers, because there are backslashes in the path, they get removed when updating metadata.

    I managed to fix an issue using wordpress’s wp_slash() function
    (although I could have probably used php’s addslash() function)

    class-fr-thumbnails-folder-image-resizer.php, line 168 :
    $this->metadata['sizes'][$this->args['size']] = wp_slash($save_result);

    I love the plugin’s intent. I’m using it in conjonction with another plugin that allows me to save images to a /*post-type*/*post-title*/ path.

    Which makes a clean files organisation + thumbnails separation. NEAT

    • This topic was modified 5 years ago by rsepierre.
    • This topic was modified 5 years ago by rsepierre.
    • This topic was modified 5 years ago by rsepierre.
    • This topic was modified 5 years ago by rsepierre.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rsepierre

    (@rsepierre)

    I was wrong. The line to edit is :

    line 170 :
    $metadata_result = wp_update_attachment_metadata($this->args['id'], wp_slash($this->metadata));

    And addslash() wouldn’t work because $this->metadata is an array.

    • This reply was modified 5 years ago by rsepierre.
    • This reply was modified 5 years ago by rsepierre.
    Plugin Author fahrirusliyadi

    (@fahrirusliyadi)

    Fixed in 1.3.1.

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix for windows’ is closed to new replies.