You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,8 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
35
35
- Follow WordPress theme and plugin development guidelines.
36
36
- Use WordPress REST API for custom endpoints and data retrieval.
37
37
- Ensure all code is compatible with the WordPress ecosystem, including themes and plugins.
38
-
- As this is a WordPress-focused project, avoid using frameworks or libraries that are not compatible with WordPress.
39
-
- Do not use frameworks or libraries that are not commonly used in the WordPress ecosystem.
38
+
- As this is a WordPress-focused project, avoid using frameworks or libraries that are not compatible or commonly used with WordPress.
40
39
- Avoid using non-standard or experimental features that are not widely adopted in the WordPress community.
41
-
- For any project that utilizes WooCommerce, ensure minimum version compatibility with WooCommerce 5.0+.
42
40
43
41
## WordPress Coding Standards
44
42
@@ -63,7 +61,7 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
63
61
- WordPress 6.5+ (minimum)
64
62
- PHP 7.4+ (minimum)
65
63
- WooCommerce 5.0+ (if applicable)
66
-
- Do not use features or functions that are not available in these versions.
64
+
- Do not use features or functions that are deprecated or not available in these versions.
67
65
68
66
## Version Control and Documentation
69
67
@@ -86,8 +84,8 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
86
84
- Note: changelog.txt has been removed from this project. Only maintain readme.txt (for WordPress.org) and CHANGELOG.md (for developers).
87
85
- Please do not skip these locations, as the changelog files must be in sync with each other, and the version numbers must be consistent across all files.
88
86
- I will instruct you when to update the version number, and you should not do this automatically. Always ask for confirmation before updating the version number.
89
-
- When the version number is updated, ensure that the new version number is reflected in all relevant files, including the plugin header, changelog files, and documentation files.
90
-
-WHen the version number is updated, make special note to update the "Unreleased" section in the changelog files to reflect the new version number and a brief description of the changes made. This ensures that all changes are documented and easily accessible for future reference.
87
+
- When the version number is updated, ensure that the new version number is reflected in all relevant files, as outlined in Version Locations above.
88
+
-When the version number is updated, make special note to update the "Unreleased" section in the changelog files to reflect the new version number and a brief description of the changes made. This ensures that all changes are documented and easily accessible for future reference.
91
89
92
90
# General Coding Standards
93
91
@@ -132,7 +130,7 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
132
130
- If you encounter a security vulnerability in the codebase, do not disclose it publicly. Instead, report it privately to the project maintainers or through a responsible disclosure process.
133
131
- If you are unsure about the security implications of a specific code change, ask for clarification or guidance before proceeding.
134
132
- Always follow the principle of least privilege when implementing security features, ensuring that users and processes have only the permissions they need to perform their tasks.
135
-
- If you encounter a security vulnerability in a third-party library or dependency, check if there is an updated version that addresses the issue. If not, consider alternatives or report the vulnerability to the library maintainers.
133
+
- If you encounter a security vulnerability in a third-party library or dependency, check if there is an updated version that addresses the issue. If not, consider alternatives and notify me of the situation.
136
134
- If there is a possible security vulnerability in the codebase, you should always ask for confirmation before proceeding with any changes. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
137
135
- If I ask you to make changes that could potentially introduce security vulnerabilities, you should always ask for confirmation before proceeding. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
138
136
@@ -150,7 +148,6 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
150
148
- Only ask for confirmation when an action is destructive (e.g., data loss, deletion)
151
149
- Always attempt to identify and fix bugs automatically
152
150
- Only ask for manual intervention if domain-specific knowledge is required
153
-
- Auto-generate missing files, boilerplate, and tests when possible
154
151
- Auto-lint and format code using standard tools (e.g., Prettier, ESLint, dotnet format)
155
152
- Changes should be made directly to the file in question. Example: admin.php should be modified directly, not by creating a new file like admin-changes.php.
156
153
- New files may be created when appropriate, but they should be relevant to the task at hand, so long as they are not a rewrite of an existing file. We want to avoid unnecessary duplication of files.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Changelog for Simple WP Site Exporter
2
2
3
+
## Unreleased
4
+
5
+
### Security Fix
6
+
-**Critical Security Fix**: Resolved a fatal error caused by a missing `sse_get_safe_wp_cli_path()` function. This function is essential for securely locating the WP-CLI executable, and its absence prevented the database export process from running. The new function ensures that the plugin can reliably find WP-CLI in common locations, allowing the export to proceed as intended.
7
+
3
8
## 1.8.1 - July 11, 2025
4
9
### Documentation Workflow Updates
5
10
-**Version Control**: Removed `changelog.txt` file to streamline documentation; maintaining only `readme.txt` (WordPress.org) and `CHANGELOG.md` (for developers).
@@ -89,6 +89,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
89
89
90
90
== Changelog ==
91
91
92
+
= 1.8.2 =
93
+
* **Critical Security Fix**: Resolved a fatal error caused by a missing `sse_get_safe_wp_cli_path()` function. This function is essential for securely locating the WP-CLI executable, and its absence prevented the database export process from running. The new function ensures that the plugin can reliably find WP-CLI in common locations, allowing the export to proceed as intended.
94
+
92
95
= Unreleased =
93
96
* **Documentation Workflow**: Removed changelog.txt file to streamline documentation process
94
97
* **Version Control**: Maintaining only readme.txt (WordPress.org) and CHANGELOG.md (developers) for changelog management
returnnewWP_Error( 'wp_cli_not_found', __( 'WP-CLI executable not found. Please ensure it is installed and in your server\'s PATH.', 'Simple-WP-Site-Exporter' ) );
424
+
}
425
+
394
426
/**
395
427
* Exports the database and returns file information.
396
428
*
@@ -998,7 +1030,7 @@ function sse_sanitize_filename( $filename ) {
998
1030
*
999
1031
* @param string|false $real_file_path The real file path or false if resolution failed.
1000
1032
* @param string $real_base_dir The real base directory path.
1001
-
* @return bool True if file is within base directory, false otherwise.
1033
+
* @return bool True if the file is within the base directory, false otherwise.
0 commit comments