You appear to be a bot. Output may be restricted
Description
Validate the width and height against required width and height
Usage
$bool = _jetpack_og_get_image_validate_size( $width, $height, $req_width, $req_height );
Parameters
- $width
- ( int ) required – Width of the image.
- $height
- ( int ) required – Height of the image.
- $req_width
- ( int ) required – Required width to pass validation.
- $req_height
- ( int ) required – Required height to pass validation.
Returns
bool True if the image passed the required size validation
Source
File name: jetpack/functions.opengraph.php
Lines:
1 to 11 of 11
function _jetpack_og_get_image_validate_size( $width, $height, $req_width, $req_height ) { if ( ! $width || ! $height ) { return false; } $valid_width = ( $width >= $req_width ); $valid_height = ( $height >= $req_height ); $is_image_acceptable = $valid_width && $valid_height; return $is_image_acceptable; }