projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-updates-status-endpoint.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 22-27 (lines=6) @@
                                 | 
                            
                                                            
                                    | 19 | 
                                     | 
                                    		include( ABSPATH . WPINC . '/version.php' ); // $wp_version;  | 
                                
                                                            
                                    | 20 | 
                                     | 
                                    		$result['wp_version'] = isset( $wp_version ) ? $wp_version : null;  | 
                                
                                                            
                                    | 21 | 
                                     | 
                                     | 
                                
                                                            
                                    | 22 | 
                                     | 
                                    		if ( ! empty( $result['wordpress'] ) ) { | 
                                
                                                            
                                    | 23 | 
                                     | 
                                    			$cur = get_preferred_from_update_core();  | 
                                
                                                            
                                    | 24 | 
                                     | 
                                    			if ( isset( $cur->response ) && $cur->response === 'upgrade' ) { | 
                                
                                                            
                                    | 25 | 
                                     | 
                                    				$result['wp_update_version'] = $cur->current;  | 
                                
                                                            
                                    | 26 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 27 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 28 | 
                                     | 
                                     | 
                                
                                                            
                                    | 29 | 
                                     | 
                                    		$result['jp_version'] = JETPACK__VERSION;  | 
                                
                                                            
                                    | 30 | 
                                     | 
                                     | 
                                
                                                                        
                 
                                                            
                    
projects/plugins/jetpack/class.jetpack.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 1686-1691 (lines=6) @@
                                 | 
                            
                                                            
                                    | 1683 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1684 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1685 | 
                                     | 
                                    		// If we need to update WordPress core, let's find the latest version number.  | 
                                
                                                            
                                    | 1686 | 
                                     | 
                                    		if ( ! empty( $updates['wordpress'] ) ) { | 
                                
                                                            
                                    | 1687 | 
                                     | 
                                    			$cur = get_preferred_from_update_core();  | 
                                
                                                            
                                    | 1688 | 
                                     | 
                                    			if ( isset( $cur->response ) && 'upgrade' === $cur->response ) { | 
                                
                                                            
                                    | 1689 | 
                                     | 
                                    				$updates['wp_update_version'] = $cur->current;  | 
                                
                                                            
                                    | 1690 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 1691 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1692 | 
                                     | 
                                    		return isset( $updates ) ? $updates : array();  | 
                                
                                                            
                                    | 1693 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 1694 | 
                                     | 
                                    	// phpcs:enable  |