Export Themes

Описание

With this plugin you can export any installed theme as a .zip file and then install that
same theme on another server through the normal „Upload Theme“ screen.

Usage

Go to Appearance > Export, pick the theme you want and press „Export“. Your browser downloads
a .zip file. On the other site, go to Appearance > Themes > Add New > Upload Theme, choose
that file and press „Install Now“.

Снимки на разширението

Инсталиране

  1. Install and activate the plugin through the ‘Plugins’ menu in WordPress.
  2. A new „Export“ item appears under the „Appearance“ menu.

ЧЗВ

Who can export a theme?

Users who can install themes (administrators on a single site, super admins on multisite).
An export contains the theme’s full PHP source, so the plugin no longer settles for the
weaker manage_options check it used up to 2.12. You can change this with the
wpct_capability filter.

Are development files included?

.git, .svn, .hg, node_modules and .DS_Store are left out. Use the
wpct_should_skip_file filter to change that.

Отзиви

03.05.2023
This plugin throws error:Deprecated: define(): Declaration of case-insensitive constants is deprecated in /var/www/html/wp62/wp-content/plugins/wp-clone-template/main.php on line 10 that’s PHP 7.4 on Apache2
12.03.2021
The plug-in works with WP 5.7 but make sure you deactivate after you use it otherwise you will have issues with curl and a couple of other things that will impact the performance of your site.
Прочетете всички 13 отзива

Сътрудници и разработчици

“Export Themes” е софтуер с отворен код. Към разширението са допринесли следните хора:

Сътрудници

Превеждане на “Export Themes” на вашия език.

Имате интерес към разработване?

Преглеждане на кода, разглеждане на SVN хранилище, или абонамент към програмната история (log) чрез RSS.

Списък с промени

3.0

  • Compatible with WordPress 7.0 and PHP 8.
  • Fixed: the plugin could not be activated at all on PHP 8. The activation hook pointed at
    install_wpct, but the function is called wpct_install_wpct; an invalid callback is a
    fatal TypeError since PHP 8.
  • Fixed: exporting died with „Path cannot be empty“. The bundled PclZip library still used a
    PHP 4 style constructor, which PHP 8 no longer treats as a constructor, so the archive name
    was never set. Exports now use ZipArchive, and fall back to the maintained copy of PclZip
    that ships with WordPress.
  • Fixed: removed the third argument of define(), dropped in PHP 8.
  • Security: the export form had no nonce and no capability check on submit, so any logged-in
    visitor could be made to trigger an export through a crafted request. Both are enforced now.
  • Security: the requested theme name was pasted straight into a filesystem path. It is now
    validated against the list of installed themes.
  • Security: archives were written into the plugin’s own folder and served by redirect, which
    left every export downloadable by anyone who guessed the URL. They are now built outside the
    web root, streamed to the browser and deleted immediately. Activating this version also
    deletes any archive left behind by an older one.
  • Removed: session_start() and ob_start() on every request, which broke page caching and
    emitted notices.
  • Removed: the bundled 5,700 line copy of PclZip.
  • Fixed: the theme list no longer comes from a hand-rolled readdir() on a path guessed with
    substr($_SERVER[‘SCRIPT_FILENAME’], 0, -19). It uses wp_get_themes(), so themes in a
    custom theme root are listed too, with their real names.
  • Fixed: all output is escaped, and the form no longer relies on PHP short open tags.
  • Added: proper internationalisation with the wp-clone-template text domain.
  • Added: wpct_capability and wpct_should_skip_file filters.

2.12

  • Typo fixed

2.1

  • Warning fixed
  • Language functions added

2.0

  • Security bug fixed
  • Old zip files are automatically deleted
  • Better session management
  • 100% WP 4.0 Compatible

1.5

  • Permisson problems fixed.
  • Warnings added.
  • Directory structure changed.