backupbuddy_backup/wp-content/plugins/backupbuddy/classes/core.php
/**
	 * versions_confirm()
	 *
	 * Check the version of an item and compare it to the minimum requirements BackupBuddy requires.
	 *
	 * @param		string		$type		Optional. If left blank '' then all tests will be performed. Valid values: wordpress, php, ''.
	 * @param		boolean		$notify		Optional. Whether or not to alert to the screen (and throw error to log) of a version issue.\
	 * @return		boolean					True if the selected type is a bad version
	 */
versions_confirm()
Check the version of an item and compare it to the minimum requirements BackupBuddy requires.

@param               string          $type           Optional. If left blank '' then all tests will be performed. Valid values: wordpress, php, ''.
@param               boolean         $notify         Optional. Whether or not to alert to the screen (and throw error to log) of a version issue.\
@return              boolean                                 True if the selected type is a bad version
versions_confirm () Check the version of an item and compare it to the minimum requirements BackupBuddy requires . @param string $type Optional . If left blank ' ' then all tests will be performed . Valid values : wordpress php ' ' . @param boolean $notify Optional . Whether or not to alert to the screen ( and throw error to log ) of a version issue . \ @return boolean True if the selected type is a bad version
public static function versions_confirm( $type = '', $notify = false ) {
		$bad_version = false;
		if ( ( $type == 'wordpress' ) || ( $type == '' ) ) {
			global $wp_version;
			if ( version_compare( $wp_version, pb_backupbuddy::settings( 'wp_minimum' ), '<=' ) ) {
				if ( $notify === true ) {
					pb_backupbuddy::alert( sprintf( __('ERROR: BackupBuddy requires WordPress version %1$s or higher. You may experience unexpected behavior or complete failure in this environment. Please consider upgrading WordPress.', 'it-l10n-backupbuddy' ), self::_wp_minimum) );
					pb_backupbuddy::log( 'Unsupported WordPress Version: ' . $wp_version , 'error' );
				}
				$bad_version = true;
			}
		}
		if ( ( $type == 'php' ) || ( $type == '' ) ) {
			if ( version_compare( PHP_VERSION, pb_backupbuddy::settings( 'php_minimum' ), '<=' ) ) {
				if ( $notify === true ) {
					pb_backupbuddy::alert( sprintf( __('ERROR: BackupBuddy requires PHP version %1$s or higher. You may experience unexpected behavior or complete failure in this environment. Please consider upgrading PHP.', 'it-l10n-backupbuddy' ), PHP_VERSION ) );
					pb_backupbuddy::log( 'Unsupported PHP Version: ' . PHP_VERSION , 'error' );
				}
				$bad_version = true;
			}
		}
		return $bad_version;
	}
public static function versions_confirm ( $ type = '' , $ notify = false ) { $ bad_version = false ; if ( ( $ type == 'wordpress' ) || ( $ type == '' ) ) { global $ wp_version ; if ( version_compare ( $ wp_version , pb_backupbuddy :: settings ( 'wp_minimum' ) , '<=' ) ) { if ( $ notify === true ) { pb_backupbuddy :: alert ( sprintf ( __ ( 'ERROR: BackupBuddy requires WordPress version %1$s or higher. You may experience unexpected behavior or complete failure in this environment. Please consider upgrading WordPress.' , 'it-l10n-backupbuddy' ) , self :: _wp_minimum ) ) ; pb_backupbuddy :: log ( 'Unsupported WordPress Version: ' . $ wp_version , 'error' ) ; } $ bad_version = true ; } } if ( ( $ type == 'php' ) || ( $ type == '' ) ) { if ( version_compare ( PHP_VERSION , pb_backupbuddy :: settings ( 'php_minimum' ) , '<=' ) ) { if ( $ notify === true ) { pb_backupbuddy :: alert ( sprintf ( __ ( 'ERROR: BackupBuddy requires PHP version %1$s or higher. You may experience unexpected behavior or complete failure in this environment. Please consider upgrading PHP.' , 'it-l10n-backupbuddy' ) , PHP_VERSION ) ) ; pb_backupbuddy :: log ( 'Unsupported PHP Version: ' . PHP_VERSION , 'error' ) ; } $ bad_version = true ; } } return $ bad_version ; }
versions_confirm()
 Check the version of an item and compare it to the minimum requirements BackupBuddy requires.
versions_confirm () Check the version of an item and compare it to the minimum requirements BackupBuddy requires .