[BackWPUp Pro] wp-config.php appears twice if "Use one folder above as WordPress install folder" is chosen
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 95
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
wp-config.php appears twice if you choose the options
- backup wp-config.php, robots.txt, nginx.conf, .htaccess, .htpasswd, favicon.ico, and Web.config from root if it is not included in backup. (default)
- Use one folder above as WordPress install folder!
To Reproduce
Steps to reproduce the behavior:
- Go to "Files" in "Add a new job"
- Click on '.Use one folder above as WordPress install folder!'
- Open the zip file and check wp-config.php appears twice, once in the top folder and once in the public_html folder (or equivalent like htdocs)
Expected behavior
Since wp-config,php is already included, it shouldn't appear twice.
System
- Linux (server), Windows (personal computer)
- Version 4.19.150-76.ELK.el6.x86_64, Windows 10, respectively.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Files section of “Add a new job” and reproduce the backup with both listed options enabled. Inspect the generated ZIP and trace how wp-config.php is selected for the top folder and the WordPress install folder. Done means the archive contains wp-config.php only once while the other root files remain correctly handled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100