projects/plugins/jetpack/class.photon.php 1 location
|
@@ 494-500 (lines=7) @@
|
491 |
|
// Build array of Photon args and expose to filter before passing to Photon URL function. |
492 |
|
$args = array(); |
493 |
|
|
494 |
|
if ( false !== $width && false !== $height ) { |
495 |
|
$args[ $transform ] = $width . ',' . $height; |
496 |
|
} elseif ( false !== $width ) { |
497 |
|
$args['w'] = $width; |
498 |
|
} elseif ( false !== $height ) { |
499 |
|
$args['h'] = $height; |
500 |
|
} |
501 |
|
|
502 |
|
/** |
503 |
|
* Filter the array of Photon arguments added to an image when it goes through Photon. |
projects/plugins/jetpack/3rd-party/class.jetpack-amp-support.php 1 location
|
@@ 519-525 (lines=7) @@
|
516 |
|
// Build array of Photon args and expose to filter before passing to Photon URL function. |
517 |
|
$args = array(); |
518 |
|
|
519 |
|
if ( false !== $width && false !== $height ) { |
520 |
|
$args[ $transform ] = $width . ',' . $height; |
521 |
|
} elseif ( false !== $width ) { |
522 |
|
$args['w'] = $width; |
523 |
|
} elseif ( false !== $height ) { |
524 |
|
$args['h'] = $height; |
525 |
|
} |
526 |
|
|
527 |
|
return $args; |
528 |
|
} |