Working copies
Where your edits go, how they compare with the live version, and how to undo them.
On this page
You never edit the installed files of a theme or plugin. When you open one, Temper copies it to private storage, and every change goes to that copy: the working copy. The site keeps running the installed version until you publish.
When a working copy is made#
- An installed theme or plugin: the first time you open it, Temper copies the installed files. This is also how you edit a plugin you didn't write.
- Something new or imported: it exists only as a working copy until you click Install. Nothing is installed or run on the site before then. See New themes and plugins.
A working copy belongs to the site, not to you. Everyone who uses Temper on the site edits the same working copy of a theme or plugin. Which project you have open is remembered for each person.
Changes#
A file in the working copy can be:
| Letter | Meaning |
|---|---|
| A | Added: it isn't in the installed version. |
| M | Modified: it differs from the installed version. |
| D | Deleted: it's in the installed version but not in the working copy. |
The toolbar counts the unpublished changes, and the Changes tab lists them. Click a modified file to compare it with live: red lines are live, green lines are your working copy.
Undo changes#
- One file: in the Changes tab, click ↺ next to it, or right-click it in the file list and choose Undo changes. The file matches the installed version again. A file that only exists in the working copy is removed.
- A deleted file: right-click it in the file list and choose Restore file.
- A project that was never installed: on Themes & Plugins, click Delete on its card. This removes it completely.
Unsaved edits in the editor are separate from the working copy. They live in your browser until you save. Closing a tab with unsaved edits asks first.
Download the working copy#
Click the project name in the toolbar and choose Download name as .zip. The zip holds the working copy, with unpublished changes.
What a working copy can't hold#
.htaccess,.user.ini,php.iniandweb.config. They change how the web server runs a folder, so Temper never writes them. Add them on the server instead.- Paths that leave the project folder, or touch
.git. Paths can use letters, numbers, dots, dashes, underscores, slashes,@and spaces. - Files over 2 MB, as text. Upload large assets another way.
- In a single-file plugin, such as
hello.php, any file but that one. To split it into several files, start a folder plugin and move the code there.
Where working copies live#
Working copies are stored in wp-content/temper, in a folder with a random name, next to the snapshots and Temper's state. See Storage and uninstall.
Warning
Updating a plugin or theme from WordPress.org replaces its installed files, including anything you published from Temper. If you change someone else's plugin, keep your changes in a child theme or your own plugin where you can.