Plugin Directory

Changeset 2063252


Ignore:
Timestamp:
04/04/2019 08:25:38 PM (7 years ago)
Author:
briancolinger
Message:

Fix a PHP fatal error caused by passing an object to the current() function.

Location:
vaultpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vaultpress/trunk/cron-tasks.php

    r2061705 r2063252  
    104104
    105105    function _scan_batch() {
    106         $paths = (array) get_option( '_vp_current_scan' );
     106        $paths = get_option( '_vp_current_scan' );
    107107        if ( empty( $paths ) || $this->_scan_clean_up( $paths ) )
    108108            return false;
    109109
     110        if ( ! is_array( $paths ) ) {
     111            return false;
     112        }
     113
    110114        reset( $paths );
    111         list( $type, $current ) = current( $paths );
     115
     116        $type    = null;
     117        $current = false;
     118        foreach ( $paths as $type => $current ) {
     119            break;
     120        }
     121
    112122        if ( !is_object( $current ) || empty( $current->last_dir ) )
    113123            return $this->_scan_clean_up( $paths, $type );
  • vaultpress/trunk/readme.txt

    r2061705 r2063252  
    44Requires at least: 3.2
    55Tested up to: 5.1.1
    6 Stable tag: 1.9.9
     6Stable tag: 1.9.10
    77License: GPLv2
    88
     
    4848
    4949== Changelog ==
     50= 1.9.10 - 4 April 2019 =
     51* Bugfix: Fix a PHP fatal error caused by passing an object to the current() function.
     52
    5053= 1.9.9 - 28 March 2019 =
    5154* PHP 7.2.0 compatibility fix.
  • vaultpress/trunk/vaultpress.php

    r2061705 r2063252  
    44 * Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
    55 * Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">Need some help?</a>
    6  * Version: 1.9.9
     6 * Version: 1.9.10
    77 * Author: Automattic
    88 * Author URI: http://vaultpress.com/?utm_source=author-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
     
    1919    var $auto_register_option = 'vaultpress_auto_register';
    2020    var $db_version           = 4;
    21     var $plugin_version       = '1.9.9';
     21    var $plugin_version       = '1.9.10';
    2222
    2323    function __construct() {
Note: See TracChangeset for help on using the changeset viewer.