Changeset 689595
- Timestamp:
- 03/31/2013 08:36:26 PM (13 years ago)
- Location:
- solid-code-theme-editor
- Files:
-
- 1 added
- 5 edited
-
tags/1.0.4 (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/sc-theme-backup.php (modified) (1 diff)
-
trunk/sc-theme-downloader.php (modified) (2 diffs)
-
trunk/sc-theme-editor.php (modified) (12 diffs)
-
trunk/scte-script.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
solid-code-theme-editor/trunk/readme.txt
r656736 r689595 16 16 17 17 Changing Theme files may harm your WordPress Site installation, please do not install this plugin unless you know exactly what you are doing. 18 Make sure you backup all your files before installing this plugin 18 Make sure you backup all your files before installing this plugin. 19 19 20 20 #### Features and highlights: … … 26 26 * Download a ZIP backup of the whole theme 27 27 * Download individual files 28 * Create and Delete files 28 29 29 30 == Installation == … … 53 54 * added support for less files 54 55 56 = 1.0.4 = 57 * added support for https 58 * added abilities to add new files 59 * added abilities to delete old files 60 55 61 == Upgrade Notice == 56 62 -
solid-code-theme-editor/trunk/sc-theme-backup.php
r428363 r689595 4 4 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>'); 5 5 6 $themes = get_themes();7 8 6 $theme = ''; 9 7 10 8 if(!isset($_GET['theme'])){ 11 $theme = get_current_theme();9 $theme = wp_get_theme(); 12 10 }else{ 13 $theme = $_GET['theme'];11 $theme = wp_get_theme(urldecode($_GET['theme'])); 14 12 } 15 13 16 14 //Get the directory to zip 17 $directory = $theme s[$theme]['Template Dir']. '/';15 $directory = $theme->get_stylesheet_directory() . '/'; 18 16 19 17 // create object -
solid-code-theme-editor/trunk/sc-theme-downloader.php
r501834 r689595 4 4 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>'); 5 5 6 $themes = get_themes();7 8 6 $file = ''; 9 7 $theme = ''; 10 8 11 9 if(!isset($_GET['theme'])){ 12 $theme = get_current_theme();10 $theme = wp_get_theme(); 13 11 }else{ 14 $theme = $_GET['theme'];12 $theme = wp_get_theme(urldecode($_GET['theme'])); 15 13 } 16 14 //default file to style.css … … 18 16 $file = '/style.css'; 19 17 }else{ 20 $file = $_GET['file'];18 $file = str_ireplace("../","",$_GET['file']); 21 19 } 22 20 23 21 $content = ''; 24 22 $urlFile = $file; 25 $file = $theme s[$theme]['Template Dir']. '/' . $file;23 $file = $theme->get_stylesheet_directory() . '/' . $file; 26 24 if(file_exists($file)){ 27