[wp-trac] [WordPress Trac] #30519: Ignore wp-config.php in core.svn/core.git repos

WordPress Trac noreply at wordpress.org
Thu Nov 27 02:43:34 UTC 2014


#30519: Ignore wp-config.php in core.svn/core.git repos
------------------------------+-----------------------------
 Reporter:  netweb            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Currently `wp-config.php` is not ignored in both `core.git.wordpress.org`
 and `core.svn.wordpress.org` repo's.

 Including this would ensure `wp-config.php` is not accidentally committed
 to anyone's SVN checkout, Git clone of `git://core.git.wordpress.org/` or
 GitHub forks of the mirror `https://github.com/wordpress/wordpress`
 mimicking the existing behaviour for the "develop" repo's.

 To patch:

 1. Add `svn:ignore` property `wp-config.php` to the SVN
 `core.svn.wordpress.org` repo
 2. Add a new `.gitignore` file to the `/src` folder of the develop repo
 https://core.trac.wordpress.org/browser/trunk/src

 File contents of new `.gitignore` file:
 {{{
 # gitignore file for WordPress Build

 # Configuration files with possibly sensitive information
 wp-config.php
 }}}

 Consideration: Should we also ignore `.htaccess` and other `.gitignore`
 files? See develop src
 [https://core.trac.wordpress.org/browser/trunk/.gitignore here]?

 '''ToDo Note''' (Separate from any patch on this ticket): When bundling
 ZIP packages for releases the `.gitignore` file should not be included in
 any ZIP package.

 See also: Slack discussion
 https://wordpress.slack.com/archives/core/p1417048473004442

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30519>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list