WordPress.org

Plugin Directory

Changeset 611550


Ignore:
Timestamp:
10/12/12 15:16:07 (19 months ago)
Author:
willmot
Message:

2.0.2 bug fix release

Location:
backupwordpress
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • backupwordpress/tags/2.0.2/admin/actions.php

    r602026 r611550  
    9090 
    9191    // Delete the running backup 
    92     if ( file_exists( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ) ) 
     92    if ( $schedule->get_running_backup_filename() && file_exists( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ) ) 
    9393        unlink( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ); 
    9494 
     
    167167    $response = wp_remote_get( site_url( 'wp-cron.php' ) ); 
    168168 
    169     if ( ! is_wp_error( $response ) && $response['response']['code'] != '200' ) 
     169    if ( is_wp_error( $response ) || $response['response']['code'] !== 200 ) 
    170170        echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is returning a %2$s response which could mean cron jobs aren\'t getting fired properly. BackUpWordPress relies on wp-cron to run scheduled back ups. See the %3$s for more details.', 'hmbkp' ), '<code>wp-cron.php</code>', '<code>' . $response['response']['code'] . '</code>', '<a href="http://wordpress.org/extend/plugins/backupwordpress/faq/">FAQ</a>' ) . '</p></div>'; 
    171171 
  • backupwordpress/tags/2.0.2/classes/email.php

    r602026 r611550  
    115115 
    116116            // The backup failed, send a message saying as much 
    117             if ( file_exists( $file ) && ( $errors = array_merge( $this->schedule->get_errors(), $this->schedule->get_warnings() ) ) ) { 
     117            if ( ! file_exists( $file ) && ( $errors = array_merge( $this->schedule->get_errors(), $this->schedule->get_warnings() ) ) ) { 
    118118 
    119119                $error_message = ''; 
  • backupwordpress/tags/2.0.2/functions/interface.php

    r602033 r611550  
    111111            echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress failed to perform the backup.', 'hmbkp' ) . '</strong> ' . __( 'You have likely hit a memory limit.', 'hmbkp' ) . '<a href="' . add_query_arg( 'action', 'hmbkp_dismiss_error' ) . '" style="float: right;" class="button">Dismiss</a></p></div>'; 
    112112        } 
    113         add_action( 'admin_notices', 'hmbkp_backup_failed_notice' ); 
     113        //add_action( 'admin_notices', 'hmbkp_backup_failed_notice' ); 
    114114 
    115115    endif; 
  • backupwordpress/trunk/admin/actions.php

    r602026 r611550  
    9090 
    9191    // Delete the running backup 
    92     if ( file_exists( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ) ) 
     92    if ( $schedule->get_running_backup_filename() && file_exists( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ) ) 
    9393        unlink( trailingslashit( hmbkp_path() ) . $schedule->get_running_backup_filename() ); 
    9494 
     
    167167    $response = wp_remote_get( site_url( 'wp-cron.php' ) ); 
    168168 
    169     if ( ! is_wp_error( $response ) && $response['response']['code'] != '200' ) 
     169    if ( is_wp_error( $response ) || $response['response']['code'] !== 200 ) 
    170170        echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is returning a %2$s response which could mean cron jobs aren\'t getting fired properly. BackUpWordPress relies on wp-cron to run scheduled back ups. See the %3$s for more details.', 'hmbkp' ), '<code>wp-cron.php</code>', '<code>' . $response['response']['code'] . '</code>', '<a href="http://wordpress.org/extend/plugins/backupwordpress/faq/">FAQ</a>' ) . '</p></div>'; 
    171171 
  • backupwordpress/trunk/classes/email.php

    r602026 r611550  
    115115 
    116116            // The backup failed, send a message saying as much 
    117             if ( file_exists( $file ) && ( $errors = array_merge( $this->schedule->get_errors(), $this->schedule->get_warnings() ) ) ) { 
     117            if ( ! file_exists( $file ) && ( $errors = array_merge( $this->schedule->get_errors(), $this->schedule->get_warnings() ) ) ) { 
    118118 
    119119                $error_message = ''; 
  • backupwordpress/trunk/functions/interface.php

    r602033 r611550  
    111111            echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress failed to perform the backup.', 'hmbkp' ) . '</strong> ' . __( 'You have likely hit a memory limit.', 'hmbkp' ) . '<a href="' . add_query_arg( 'action', 'hmbkp_dismiss_error' ) . '" style="float: right;" class="button">Dismiss</a></p></div>'; 
    112112        } 
    113         add_action( 'admin_notices', 'hmbkp_backup_failed_notice' ); 
     113        //add_action( 'admin_notices', 'hmbkp_backup_failed_notice' ); 
    114114 
    115115    endif; 
  • backupwordpress/trunk/plugin.php

    r602033 r611550  
    66Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. 
    77Author: Human Made Limited 
    8 Version: 2.0.1 
     8Version: 2.0.2 
    99Author URI: http://hmn.md/ 
    1010*/ 
  • backupwordpress/trunk/readme.txt

    r602033 r611550  
    33Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade 
    44Requires at least: 3.3.3 
    5 Tested up to: 3.4.2 
    6 Stable tag: 2.0.1 
     5Tested up to: 3.5 
     6Stable tag: 2.0.2 
    77 
    88Simple automated back ups of your WordPress powered website. 
     
    103103 
    104104== Changelog == 
     105 
     106#### 2.0.2 
     107 
     108* Only send backup failed emails if the backup actually failed. 
     109* Turn off the generic "memory limit probably hit" message as it was showing for too many people. 
     110* Fix a possible notice when the backup running filename is blank. 
     111* Include the `wp_error` response in the cron check. 
    105112 
    106113#### 2.0.1 
Note: See TracChangeset for help on using the changeset viewer.