src/Monitor.php
/**
	 * Collect our available core updates
	 *
	 * @return array - list of available major, minor, and patch updates
	 * @access private
	 */
Collect our available core updates
@return array - list of available major, minor, and patch updates
@access private
Collect our available core updates @return array - list of available major minor and patch updates @access private
private function compile_core() {
		global $wp_version;
		$data = new \StdClass();
		$current_version = preg_replace( '/\-src$/', '', $GLOBALS['wp_version'] );
		$data->current = $current_version;
		wp_version_check();
		$api_version = get_site_transient( 'update_core' );
		if ( ! empty( $api_version->updates[0]->version ) ) {
			$data->recommended = $api_version->updates[0]->version;
		}
		return $data;
	}
private function compile_core ( ) { global $ wp_version ; $ data = new \ StdClass ( ) ; $ current_version = preg_replace ( '/\-src$/' , '' , $ GLOBALS [ 'wp_version' ] ) ; $ data -> current = $ current_version ; wp_version_check ( ) ; $ api_version = get_site_transient ( 'update_core' ) ; if ( ! empty ( $ api_version -> updates [ 0 ] -> version ) ) { $ data -> recommended = $ api_version -> updates [ 0 ] -> version ; } return $ data ; }
Collect our available core updates
 @return array - list of available major, minor, and patch updates
 @access private
Collect our available core updates @return array - list of available major minor and patch updates @access private
// Current version // Recommended version