Linux 软件免费装
Banner图

Dev Theme – Theme Development & Backups

开发者 galpeaceman
bashari
更新时间 2026年11月11日 04:24
PHP版本: 7.4 及以上
WordPress版本: 7.1.4
版权: GPLv2 or later
版权网址: 版权信息

标签

theme development staging deployment theme preview backups

下载

2.0.0 2.0.1 2.0.2

详情介绍:

Your next theme update. With a way back. Dev Theme – Theme Development & Backups gives your WordPress theme a dedicated development copy, browser previews, verified publishing and a version history you can restore from. Work on your theme files while regular visitors keep using the main theme. When your changes are ready, publish them from one focused dashboard. Need to revisit an earlier version? Choose a backup and restore it; the current files are backed up first. Develop → Preview → Publish → Restore. One workflow for the files that shape your site. What you can do Built for theme-file workflows Dev Theme is designed for developers, freelancers and site maintainers who want to test theme-file changes against the site's existing content, without maintaining a second content database. Content, plugins and the database are shared by design. Dev Theme does not clone the entire site or copy database settings between themes. Changes to content, or development code that writes to the database, affect the live database. Browser-cookie previews are intentionally available without login; they are not private access links. Before your first publish Test the development copy before publishing. File verification checks the copied files, not whether the theme's PHP or design works correctly. Directory replacement has a brief transition between renames, so coordinate publishing with traffic and other file editors. Keep backup storage outside the public web root where possible. Apache and IIS denial files are provided; Nginx needs server-level rules. Exclude the dev_theme cookie from server and CDN page caches. WP Rocket cookie exclusions and cache refreshes are attempted when its APIs are available; WP Engine integration is also included. Support Have a question or found an issue? Visit the Dev Theme support forum. Include your WordPress and PHP versions, theme type and the action that failed. Do not post passwords or private backup files.

安装:

  1. Install and activate Dev Theme. WordPress 4.9+, PHP 7.4+ and direct filesystem write access are required.
  2. Configure a dedicated private backup directory, or the appropriate HTTP denial rules for your hosting. Configure server/CDN cache exclusions for the dev_theme cookie.
  3. Open DEV Theme in your WordPress dashboard and choose Create development copy.
  4. In your user profile, enable Use the development theme for my account and save. Alternatively, set the browser cookie dev_theme=enabled and reload.
  5. Edit and test the files under wp-content/themes/dev-theme. Check the main theme in a browser without development preview enabled.
  6. Choose Publish to main theme when ready. Use Version history to restore a backup or adjust how many versions are retained.

屏幕截图:

  • Filter saved versions and choose a backup to restore.

升级注意事项:

2.0.2 English-only plugin page source with a separate Hebrew translation prepared for WordPress.org. No change to theme files, backups or recovery. 2.0.1 New bilingual plugin page and visual identity. No change to the theme publishing and recovery workflow. 2.0.0 Requires PHP 7.4+. Adds versioned backups and a new recovery workflow. Legacy -bk folders remain untouched and are not imported into history.

常见问题:

Is this a full staging site?

No. Dev Theme copies theme files only. Content, plugins, users and the database remain shared. Theme settings stored in the database are not synchronized between theme directory names.

Who can see the development theme?

An account with development preview enabled, or any browser with dev_theme=enabled. The cookie works without login and is not an access-control mechanism. Clear it and disable the profile setting to return to the main theme.

How many backups are kept?

The default is 10 per destination; choose 1–50 in the dashboard. Older versions are removed only after a successful replacement of that destination. Existing legacy -bk folders are preserved but are not imported into the new history.

What happens if publishing fails?

The copy is prepared and verified before replacement. A failed swap attempts to restore the previous directory. A recovery journal helps the next authorized operation recover an interrupted swap. If files no longer match the recorded versions, recovery stops and preserves them for inspection.

Are child themes supported?

Yes. Dev Theme copies the active child theme and keeps using its original parent. Changes to the parent itself remain shared.

Where are backups stored?

By default, in a dedicated randomized directory under wp-content. Prefer a directory outside the public web root using the dev_theme_backup_directory filter. On Nginx, explicitly deny HTTP access to backup and working directories. Configure exclusions in any cache that serves pages before WordPress loads.

Who can publish or restore?

Users need manage_options and edit_theme_options, and WordPress must allow file modifications. Multisite requires a Super Admin because theme files are shared across the network. Symbolic links and Windows junctions are not supported in theme copies.

更新日志:

2.0.2 2.0.1 2.0.0 1.2.0 1.1.0 1.0.7