Пример #1
0
 /*
 $parent_class_test = array(
 				'title'			=>		'BackupBuddy Version',
 				'suggestion'	=>		'>= ' . pb_backupbuddy::settings( 'wp_minimum' ) . ' (latest best)',
 				'value'			=>		$wp_version,
 				'tip'			=>		__('Version of WordPress currently running. It is important to keep your WordPress up to date for security & features.', 'it-l10n-backupbuddy' ),
 			);
 if ( version_compare( $wp_version, pb_backupbuddy::settings( 'wp_minimum' ), '<=' ) ) {
 	$parent_class_test['status'] = __('FAIL', 'it-l10n-backupbuddy' );
 } else {
 	$parent_class_test['status'] = __('OK', 'it-l10n-backupbuddy' );
 }
 array_push( $tests, $parent_class_test );
 */
 // BACKUPBUDDY VERSION
 if (false === ($latestVersion = backupbuddy_core::determineLatestVersion($bypassCache = true))) {
     $suggestion_text = '[information unavailable]';
     $latest_backupbuddy_nonminor_version = 0;
 } else {
     $latest_backupbuddy_version = $latestVersion[0];
     $latest_backupbuddy_nonminor_version = $latestVersion[1];
     $suggestion_text = $latest_backupbuddy_nonminor_version;
     if ($latest_backupbuddy_version == pb_backupbuddy::settings('version')) {
         // At absolute latest including minor.
         $suggestion_text .= ' (major version) or ' . $latest_backupbuddy_version . ' (<a href="options-general.php?page=ithemes-licensing" title="You may enable upgrading to the quick release version on the iThemes Licensing page.">quick release</a>)';
     } elseif ($latest_backupbuddy_nonminor_version != $latest_backupbuddy_version) {
         // Minor version available that is newer than latest major.
         $suggestion_text .= ' (major version) or ' . $latest_backupbuddy_version . ' (<a href="plugins.php?ithemes-updater-force-minor-update=1" title="You may enable upgrading to the quick release version on the iThemes Licensing page.">quick release version</a>; <a href="options-general.php?page=ithemes-licensing" title="Once you have licensed BackupBuddy you may select this to go to the Plugins page to upgrade to the latest quick release version. Typically only the main major versions are available for automatic updates but this option instructs the updater to display minor version updates for approximately one hour. If it does not immediately become available on the Plugins page, try refreshing a couple of times.">quick release settings</a>)';
     } else {
         $suggestion_text .= ' (latest)';
     }
Пример #2
0
 /*
 $parent_class_test = array(
 				'title'			=>		'BackupBuddy Version',
 				'suggestion'	=>		'>= ' . pb_backupbuddy::settings( 'wp_minimum' ) . ' (latest best)',
 				'value'			=>		$wp_version,
 				'tip'			=>		__('Version of WordPress currently running. It is important to keep your WordPress up to date for security & features.', 'it-l10n-backupbuddy' ),
 			);
 if ( version_compare( $wp_version, pb_backupbuddy::settings( 'wp_minimum' ), '<=' ) ) {
 	$parent_class_test['status'] = __('FAIL', 'it-l10n-backupbuddy' );
 } else {
 	$parent_class_test['status'] = __('OK', 'it-l10n-backupbuddy' );
 }
 array_push( $tests, $parent_class_test );
 */
 // BACKUPBUDDY VERSION
 if (false === ($latestVersion = backupbuddy_core::determineLatestVersion())) {
     $suggestion_text = '[information unavailable]';
     $latest_backupbuddy_nonminor_version = 0;
 } else {
     $latest_backupbuddy_version = $latestVersion[0];
     $latest_backupbuddy_nonminor_version = $latestVersion[1];
     $suggestion_text = $latest_backupbuddy_nonminor_version;
     if ($latest_backupbuddy_version == pb_backupbuddy::settings('version')) {
         // At absolute latest including minor.
         $suggestion_text .= ' (major version) or ' . $latest_backupbuddy_version . ' (<a href="options-general.php?page=ithemes-licensing" title="You may enable upgrading to the quick release version on the iThemes Licensing page.">quick release</a>)';
     } elseif ($latest_backupbuddy_nonminor_version != $latest_backupbuddy_version) {
         // Minor version available that is newer than latest major.
         $suggestion_text .= ' (major version) or ' . $latest_backupbuddy_version . ' (<a href="plugins.php?ithemes-updater-force-minor-update=1" title="You may enable upgrading to the quick release version on the iThemes Licensing page.">quick release version</a>; <a href="options-general.php?page=ithemes-licensing" title="Once you have licensed BackupBuddy you may select this to go to the Plugins page to upgrade to the latest quick release version. Typically only the main major versions are available for automatic updates but this option instructs the updater to display minor version updates for approximately one hour. If it does not immediately become available on the Plugins page, try refreshing a couple of times.">quick release settings</a>)';
     } else {
         $suggestion_text .= ' (latest)';
     }