🔞 ADULT: Changeset/ - Full Archive

Changeset 689595


Ignore:
Timestamp:
03/31/2013 08:36:26 PM (13 years ago)
Author:
DaganLev
Message:

version 1.0.4 released

Location:
solid-code-theme-editor
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • solid-code-theme-editor/trunk/readme.txt

    r656736 r689595  
    1616
    1717Changing 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
     18Make sure you backup all your files before installing this plugin.
    1919
    2020#### Features and highlights:
     
    2626* Download a ZIP backup of the whole theme
    2727* Download individual files
     28* Create and Delete files
    2829
    2930== Installation ==
     
    5354* added support for less files
    5455
     56= 1.0.4 =
     57* added support for https
     58* added abilities to add new files
     59* added abilities to delete old files
     60
    5561== Upgrade Notice ==
    5662
  • solid-code-theme-editor/trunk/sc-theme-backup.php

    r428363 r689595  
    44        wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>');
    55
    6 $themes = get_themes();
    7 
    86$theme = '';
    97
    108if(!isset($_GET['theme'])){
    11     $theme = get_current_theme();
     9    $theme = wp_get_theme();
    1210}else{
    13     $theme = $_GET['theme'];
     11    $theme = wp_get_theme(urldecode($_GET['theme']));
    1412}
    1513
    1614//Get the directory to zip
    17 $directory = $themes[$theme]['Template Dir'] . '/';
     15$directory = $theme->get_stylesheet_directory() . '/';
    1816
    1917// create object
  • solid-code-theme-editor/trunk/sc-theme-downloader.php

    r501834 r689595  
    44        wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>');
    55
    6 $themes = get_themes();
    7 
    86$file = '';
    97$theme = '';
    108
    119if(!isset($_GET['theme'])){
    12     $theme = get_current_theme();
     10    $theme = wp_get_theme();
    1311}else{
    14     $theme = $_GET['theme'];
     12    $theme = wp_get_theme(urldecode($_GET['theme']));
    1513}
    1614//default file to style.css
     
    1816    $file = '/style.css';
    1917}else{
    20     $file = $_GET['file'];
     18    $file = str_ireplace("../","",$_GET['file']);
    2119}
    2220
    2321$content = '';
    2422$urlFile = $file;
    25 $file = $themes[$theme]['Template Dir'] . '/' . $file;
     23$file = $theme->get_stylesheet_directory() . '/' . $file;
    2624if(file_exists($file)){
    27