WordPress.org

Plugin Directory

Changeset 595382


Ignore:
Timestamp:
09/06/12 13:34:40 (20 months ago)
Author:
joehoyle
Message:

Fixed compatibility with backupwordpress

Location:
wpremote/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wpremote/trunk/hm-backup/hm-backup.php

    r595353 r595382  
    66 * @version 2.0 Beta 
    77 */ 
    8 class HM_Backup { 
     8class WPR_HM_Backup { 
    99 
    1010    /** 
     
    866866        // Zip up everything 
    867867        if ( $this->get_type() !== 'database' ) 
    868             if ( ! $archive->add( $this->get_root(), PCLZIP_OPT_REMOVE_PATH, $this->get_root(), PCLZIP_CB_PRE_ADD, 'hmbkp_pclzip_callback' ) ) 
     868            if ( ! $archive->add( $this->get_root(), PCLZIP_OPT_REMOVE_PATH, $this->get_root(), PCLZIP_CB_PRE_ADD, 'wpr_hmbkp_pclzip_callback' ) ) 
    869869                $this->warning( $this->archive_method, $archive->errorInfo( true ) ); 
    870870 
     
    15561556 * @return bool 
    15571557 */ 
    1558 function hmbkp_pclzip_callback( $event, &$file ) { 
    1559  
    1560     global $_hmbkp_exclude_string; 
     1558function wpr_hmbkp_pclzip_callback( $event, &$file ) { 
     1559 
     1560    global $_wpr_hmbkp_exclude_string; 
    15611561 
    15621562    // Don't try to add unreadable files. 
     
    15651565 
    15661566    // Match everything else past the exclude list 
    1567     elseif ( $_hmbkp_exclude_string && preg_match( '(' . $_hmbkp_exclude_string . ')', $file['stored_filename'] ) ) 
     1567    elseif ( $_wpr_hmbkp_exclude_string && preg_match( '(' . $_wpr_hmbkp_exclude_string . ')', $file['stored_filename'] ) ) 
    15681568        return false; 
    15691569 
  • wpremote/trunk/plugin.php

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

    r595352 r595382  
    44Requires at least: 2.9 
    55Tested up to: 3.4.1 
    6 Stable tag: 2.2.2 
     6Stable tag: 2.2.3 
    77 
    88WP Remote is a free web app that enables you to easily manage all of your WordPress powered sites from one place. 
     
    3232== Changelog == 
    3333 
     34#### 2.2.3 
     35 
     36* Use WPR_HM_Backup instead of HM_Backup (fixes compatibilty with backupwordpress) 
     37 
    3438#### 2.2 
    3539 
  • wpremote/trunk/wprp.backups.php

    r595352 r595382  
    99function _wprp_backups_api_call( $action ) { 
    1010 
    11     if ( ! class_exists( 'hm_backup' ) ) 
     11    if ( ! class_exists( 'WPR_HM_Backup' ) ) 
    1212        return new WP_Error( 'Backups module not present' ); 
    1313 
     
    2222            @ignore_user_abort( true ); 
    2323             
    24             $backup = new HM_Backup(); 
     24            $backup = new WPR_HM_Backup(); 
    2525            $upload_dir = wp_upload_dir(); 
    2626             
     
    157157 
    158158function _wprp_get_backups_info() { 
    159     if ( ! class_exists( 'hm_backup' ) ) 
     159    if ( ! class_exists( 'WPR_HM_Backup' ) ) 
    160160        return; 
    161161 
    162     $hm_backup = new HM_Backup(); 
     162    $hm_backup = new WPR_HM_Backup(); 
    163163    $info = array( 
    164164        'mysqldump_path' => $hm_backup->get_mysqldump_command_path(), 
Note: See TracChangeset for help on using the changeset viewer.