summaryrefslogtreecommitdiffstats
path: root/options/gitignore/WordPress
diff options
context:
space:
mode:
authorGiteaBot <teabot@gitea.io>2021-12-05 00:25:15 +0000
committerGiteaBot <teabot@gitea.io>2021-12-05 00:25:15 +0000
commit98d903a3c6060dd52e9301b3b965cb761cfd0789 (patch)
treea21b05d3d62e1bf1b7b821d79ffca102081bd149 /options/gitignore/WordPress
parenta1dca00974b8b179996fa52b28e627860179899c (diff)
downloadgitea-98d903a3c6060dd52e9301b3b965cb761cfd0789.tar.gz
gitea-98d903a3c6060dd52e9301b3b965cb761cfd0789.zip
[skip ci] Updated licenses and gitignores
Diffstat (limited to 'options/gitignore/WordPress')
-rw-r--r--options/gitignore/WordPress59
1 files changed, 42 insertions, 17 deletions
diff --git a/options/gitignore/WordPress b/options/gitignore/WordPress
index a32768a94e..ba95e278eb 100644
--- a/options/gitignore/WordPress
+++ b/options/gitignore/WordPress
@@ -1,23 +1,48 @@
-# ignore everything in the root except the "wp-content" directory.
-!wp-content/
+# Wordpress - ignore core, configuration, examples, uploads and logs.
+# https://github.com/github/gitignore/blob/master/WordPress.gitignore
-# ignore everything in the "wp-content" directory, except:
-# "mu-plugins", "plugins", "themes" directory
-wp-content/*
-!wp-content/mu-plugins/
-!wp-content/plugins/
-!wp-content/themes/
+# Core
+#
+# Note: if you want to stage/commit WP core files
+# you can delete this whole section/until Configuration.
+/wp-admin/
+/wp-content/index.php
+/wp-content/languages
+/wp-content/plugins/index.php
+/wp-content/themes/index.php
+/wp-includes/
+/index.php
+/license.txt
+/readme.html
+/wp-*.php
+/xmlrpc.php
-# ignore these plugins
-wp-content/plugins/hello.php
+# Configuration
+wp-config.php
-# ignore specific themes
-wp-content/themes/twenty*/
+# Example themes
+/wp-content/themes/twenty*/
-# ignore node dependency directories
-node_modules/
+# Example plugin
+/wp-content/plugins/hello.php
-# ignore log files and databases
+# Uploads
+/wp-content/uploads/
+
+# Log files
*.log
-*.sql
-*.sqlite
+
+# htaccess
+/.htaccess
+
+# All plugins
+#
+# Note: If you wish to whitelist plugins,
+# uncomment the next line
+#/wp-content/plugins
+
+# All themes
+#
+# Note: If you wish to whitelist themes,
+# uncomment the next line
+#/wp-content/themes \ No newline at end of file