lib/Admin.php
public static function in_plugin_update_message( $plugin_data, $r ) {
		$current_version = $plugin_data['Version'];
		$new_version = $plugin_data['new_version'];
		$upgrade_magnitude = self::get_upgrade_magnitude($current_version, $new_version);
		if ( $upgrade_magnitude == 'milestone' ) {
			$message = self::update_message_milestone();
			echo '<br />'.sprintf($message);
			return;
		} elseif ( $upgrade_magnitude == 'major' ) {
			//major version
			$message = self::update_message_major();
			echo '<br />'.sprintf($message);
			return;
		}
		$message = self::update_message_minor();
		echo '<br />'.($message);
		return;

	}
public static function in_plugin_update_message( $plugin_data, $r ) {
		$current_version = $plugin_data['Version'];
		$new_version = $plugin_data['new_version'];
		$upgrade_magnitude = self::get_upgrade_magnitude($current_version, $new_version);
		if ( $upgrade_magnitude == 'milestone' ) {
			$message = self::update_message_milestone();
			echo '<br />'.sprintf($message);
			return;
		} elseif ( $upgrade_magnitude == 'major' ) {
			//major version
			$message = self::update_message_major();
			echo '<br />'.sprintf($message);
			return;
		}
		$message = self::update_message_minor();
		echo '<br />'.($message);
		return;

	}
public static function in_plugin_update_message ( $ plugin_data , $ r ) { $ current_version = $ plugin_data [ 'Version' ] ; $ new_version = $ plugin_data [ 'new_version' ] ; $ upgrade_magnitude = self :: get_upgrade_magnitude ( $ current_version , $ new_version ) ; if ( $ upgrade_magnitude == 'milestone' ) { $ message = self :: update_message_milestone ( ) ; echo '<br />' . sprintf ( $ message ) ; return ; } elseif ( $ upgrade_magnitude == 'major' ) { //major version $ message = self :: update_message_major ( ) ; echo '<br />' . sprintf ( $ message ) ; return ; } $ message = self :: update_message_minor ( ) ; echo '<br />' . ( $ message ) ; return ; }
Displays an update message for plugin list screens.
Shows only the version updates from the current until the newest version

@codeCoverageIgnore

@type	function
@date	4/22/16

@param	{array}		$plugin_data
@param	{object}	$r
Displays an update message for plugin list screens . Shows only the version updates from the current until the newest version