Skip to content

Studio: Allow hidden files import within wp-content - #2663

Merged
katinthehatsite merged 1 commit into
trunkfrom
fix/import-of-hidden-files
Feb 27, 2026
Merged

Studio: Allow hidden files import within wp-content#2663
katinthehatsite merged 1 commit into
trunkfrom
fix/import-of-hidden-files

Conversation

@katinthehatsite

Copy link
Copy Markdown
Contributor

Related issues

Fixes https://linear.app/a8c/issue/STU-40/hidden-files-not-imported

Proposed Changes

This PR ensures that you can import hidden files into Studio (such as .gitignore) if they are located within wp-content folder.

Testing Instructions

  • Pull the changes from this branch
  • On Studio site A, add a hidden file to wp-content folder e.g. .gitignore
  • Export site A through the Export option in the Export/Import tab
  • Click on Add site
  • Select Import from a backup
  • Use the backup from site A
  • Once the import is completed, open the new site in Finder and confirm that the hidden file is present in the wp-content directory

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@katinthehatsite katinthehatsite self-assigned this Feb 25, 2026
@katinthehatsite
katinthehatsite requested a review from a team February 25, 2026 15:14
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 4840158 vs trunk

site-editor

Metric trunk 4840158 Diff Change
load 1469.00 ms 1430.00 ms -39.00 ms ⚪ 0.0%

site-startup

Metric trunk 4840158 Diff Change
siteCreation 7114.00 ms 8144.00 ms +1030.00 ms 🔴 14.5%
siteStartup 4930.00 ms 4947.00 ms +17.00 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@gcsecsey gcsecsey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @katinthehatsite! 🙌 This looks good to me, tests and works well.

Before export After import
Image Image
@katinthehatsite
katinthehatsite merged commit f536769 into trunk Feb 27, 2026
9 checks passed
@katinthehatsite
katinthehatsite deleted the fix/import-of-hidden-files branch February 27, 2026 13:20
@wojtekn wojtekn mentioned this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants