Skip to content

Commit fb86177

Browse files
committed
WordPress: Only ignore files in root to support other plugins
Most files are ignores without defining the directory. This caused trouble with several plugins. To fix that some files should only be ignored in the root directory. - .htaccess is only ignored in the root directory due to some plugins or devs that need and create the htaccess for security issues in subfolders - sitemap.xml and sitemap.xml.gz is only ignored in the root directory due to plugins that have an equal name and are therefor ignored - Those files are ordered alphabetically
1 parent 23aad6a commit fb86177

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

WordPress.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
*.log
2-
.htaccess
3-
sitemap.xml
4-
sitemap.xml.gz
52
wp-config.php
63
wp-content/advanced-cache.php
74
wp-content/backup-db/
@@ -13,6 +10,9 @@ wp-content/uploads/
1310
wp-content/wp-cache-config.php
1411
wp-content/plugins/hello.php
1512

16-
/readme.html
13+
/.htaccess
1714
/license.txt
15+
/readme.html
16+
/sitemap.xml
17+
/sitemap.xml.gz
1818

0 commit comments

Comments
 (0)