Support » Plugin: WordPress Media Library Folders » the name of “.htaccess” changes when press the [Sync] button

  • Resolved cul9laia1

    (@cul9laia1)


    My website has “.htaccess” created under the media folder by the plugin “Wordfence Security”.

    Pressing the [Sync] button of Media Library Folders will recognize this file and add it to the library.
    And the file name has been changed to “htaccess”. (There is no Period / dot)

    It is a reference image.
    https://imgur.com/a/PWw9h

    • This topic was modified 3 years, 6 months ago by cul9laia1.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AlanP57

    (@alanp57)

    Thank you for sharing this. Until we release the next version, here is a quick fix you can make to the code. At line 3498 change in maxgalleria-media-library.php;

    if($file_path !== '.DS_Store') {
    to
    if($file_path !== '.DS_Store' && $file_path !== '.htaccess') {

    Thread Starter cul9laia1

    (@cul9laia1)

    Thank you! That is as hoped!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the name of “.htaccess” changes when press the [Sync] button’ is closed to new replies.