WordPress.org

Plugin Directory

Changeset 629088


Ignore:
Timestamp:
11/23/12 18:06:02 (17 months ago)
Author:
willmot
Message:

Release 2.4.9 tag and set to stable.

Location:
wpremote
Files:
109 added
6 edited

Legend:

Unmodified
Added
Removed
  • wpremote/trunk/backupwordpress/classes/schedule.php

    r628711 r629088  
    9595 
    9696        // Set the archive filename to site name + schedule slug + date 
    97         $this->set_archive_filename( implode( '-', array( sanitize_title( url_shorten( home_url() ) ), $this->get_id(), $this->get_type(), date( 'Y-m-d-H-i-s', current_time( 'timestamp' ) ) ) ) . '.zip' ); 
     97        $this->set_archive_filename( implode( '-', array( sanitize_title( str_ireplace( array( 'http://', 'https://', 'www' ), '', home_url() ) ), $this->get_id(), $this->get_type(), date( 'Y-m-d-H-i-s', current_time( 'timestamp' ) ) ) ) . '.zip' ); 
    9898 
    9999        // Setup the schedule if it isn't set or TODO if it's changed 
  • wpremote/trunk/backupwordpress/hm-backup/hm-backup.php

    r628711 r629088  
    271271 
    272272        if ( empty( $this->archive_filename ) ) 
    273             $this->set_archive_filename( implode( '-', array( sanitize_title( url_shorten( home_url() ) ), 'backup', date( 'Y-m-d-H-i-s', current_time( 'timestamp' ) ) ) ) . '.zip' ); 
     273            $this->set_archive_filename( implode( '-', array( sanitize_title( str_ireplace( array( 'http://', 'https://', 'www' ), '', home_url() ) ), 'backup', date( 'Y-m-d-H-i-s', current_time( 'timestamp' ) ) ) ) . '.zip' ); 
    274274 
    275275        return $this->archive_filename; 
     
    351351 
    352352        if ( empty( $this->root ) ) 
    353             $this->set_root( HM_Backup::conform_dir( self::get_home_path() ) ); 
     353            $this->set_root( self::conform_dir( self::get_home_path() ) ); 
    354354 
    355355        return $this->root; 
     
    369369            throw new Exception( 'Invalid root path <code>' . $path . '</code> must be a valid directory path' ); 
    370370 
    371         $this->root = HM_Backup::conform_dir( $path ); 
     371        $this->root = self::conform_dir( $path ); 
    372372 
    373373    } 
     
    382382 
    383383        if ( empty( $this->path ) ) 
    384             $this->set_path( HM_Backup::conform_dir( hmbkp_path_default() ) ); 
     384            $this->set_path( self::conform_dir( hmbkp_path_default() ) ); 
    385385 
    386386        return $this->path; 
     
    400400            throw new Exception( 'Invalid backup path <code>' . $path . '</code> must be a non empty (string)' ); 
    401401 
    402         $this->path = HM_Backup::conform_dir( $path ); 
     402        $this->path = self::conform_dir( $path ); 
    403403 
    404404    } 
     
    512512        // Find the one which works 
    513513        foreach ( $mysqldump_locations as $location ) 
    514             if ( is_executable( HM_Backup::conform_dir( $location ) ) ) 
     514            if ( is_executable( self::conform_dir( $location ) ) ) 
    515515                $this->set_mysqldump_command_path( $location ); 
    516516 
     
    573573        // Find the one which works 
    574574        foreach ( $zip_locations as $location ) 
    575             if ( is_executable( HM_Backup::conform_dir( $location ) ) ) 
     575            if ( is_executable( self::conform_dir( $location ) ) ) 
    576576                $this->set_zip_command_path( $location ); 
    577577 
     
    822822 
    823823                // Excludes 
    824                 if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ) 
     824                if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ) 
    825825                    continue; 
    826826 
    827827                if ( $file->isDir() ) 
    828                     $zip->addEmptyDir( trailingslashit( str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ); 
     828                    $zip->addEmptyDir( trailingslashit( str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ); 
    829829 
    830830                elseif ( $file->isFile() ) 
    831                     $zip->addFile( $file->getPathname(), str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ); 
     831                    $zip->addFile( $file->getPathname(), str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ); 
    832832 
    833833                if ( ++$files_added % 500 === 0 ) 
     
    948948            return false; 
    949949 
    950         if ( $this->get_unreadable_files() ) 
     950        if ( $this->get_unreadable_file_count() ) 
    951951            $this->warning( $this->get_archive_method(), __( 'The following files are unreadable and couldn\'t be backed up: ', 'hmbkp' ) . implode( ', ', $this->get_unreadable_files() ) ); 
    952952 
     
    10011001                continue; 
    10021002 
    1003             $filepath = HM_Backup::conform_dir( trailingslashit( $dir ) . $file ); 
     1003            $filepath = self::conform_dir( trailingslashit( $dir ) . $file ); 
    10041004            $file = str_ireplace( trailingslashit( $this->get_root() ), '', $filepath ); 
    10051005 
     
    10361036 
    10371037            // Excludes 
    1038             if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ) 
     1038            if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ) 
    10391039                continue; 
    10401040 
     
    10681068 
    10691069            // Excludes 
    1070             if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ) 
     1070            if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ) 
    10711071                continue; 
    10721072 
     
    11001100 
    11011101            // Excludes 
    1102             if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ) 
     1102            if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ) 
    11031103                $this->excluded_files[] = $file; 
    11041104 
     
    11301130 
    11311131            // Excludes 
    1132             if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', HM_Backup::conform_dir( $file->getPathname() ) ) ) ) 
     1132            if ( $excludes && preg_match( '(' . $excludes . ')', str_ireplace( trailingslashit( $this->get_root() ), '', self::conform_dir( $file->getPathname() ) ) ) ) 
    11331133                $this->excluded_file_count++; 
    11341134 
     
    12921292 
    12931293            // Strip $this->root and conform 
    1294             $rule = str_ireplace( $this->get_root(), '', untrailingslashit( HM_Backup::conform_dir( $rule ) ) ); 
     1294            $rule = str_ireplace( $this->get_root(), '', untrailingslashit( self::conform_dir( $rule ) ) ); 
    12951295 
    12961296            // Strip the preceeding slash 
  • wpremote/trunk/backupwordpress/plugin.php

    r628711 r629088  
    11<?php 
     2 
     3/* 
     4Plugin Name: BackUpWordPress 
     5Plugin URI: http://hmn.md/backupwordpress/ 
     6Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. 
     7Author: Human Made Limited 
     8Version: 2.1.1 Alpha 
     9Author URI: http://hmn.md/ 
     10*/ 
    211 
    312/*  Copyright 2011 Human Made Limited  (email : support@hmn.md) 
  • wpremote/trunk/backupwordpress/readme.txt

    r628711 r629088  
    103103 
    104104== Changelog == 
     105 
     106#### 2.1.1 
     107 
     108* Fix a possible fatal error when a backup schedule is instantiated outside of wp-admin. 
     109* Don't use functions from misc.php as loading it too early can cause fatal errors. 
     110* Don't hardcode an English string in the JS, use the translated string instead. 
     111* Minor code cleanup. 
    105112 
    106113#### 2.1 
  • wpremote/trunk/plugin.php

    r629045 r629088  
    44Plugin Name: WP Remote 
    55Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>. <strong>Deactivate to clear your API Key.</strong> 
    6 Version: 2.4.8 
     6Version: 2.4.9 
    77Author: Human Made Limited 
    88Author URI: http://hmn.md/ 
  • wpremote/trunk/readme.txt

    r629045 r629088  
    44Requires at least: 2.9 
    55Tested up to: 3.5 
    6 Stable tag: 2.4.8 
     6Stable tag: 2.4.9 
    77 
    88WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place. 
     
    3131 
    3232== Changelog == 
     33 
     34#### 2.4.9 
     35 
     36* Pull in latest BackUpWordPress which fixes a possible Fatal error caused by `url_shorten` being called outside the admin. 
    3337 
    3438#### 2.4.8 
Note: See TracChangeset for help on using the changeset viewer.