diff --git a/php/class-media.php b/php/class-media.php index 2126e91b0..bea57b7b7 100644 --- a/php/class-media.php +++ b/php/class-media.php @@ -996,7 +996,7 @@ protected function get_cache_key( $args ) { * @param int $attachment_id The id of the attachment. * @param array|string $size The wp size to set for the URL. * @param array $transformations Set of transformations to apply to this url. - * @param string $cloudinary_id Optional forced cloudinary ID. + * @param string|null $cloudinary_id Optional forced cloudinary ID. * @param bool $overwrite_transformations Flag url is a breakpoint URL to stop re-applying default transformations. * * @return string The converted URL. diff --git a/php/delivery/class-lazy-load.php b/php/delivery/class-lazy-load.php index 2b058339c..0de5db34d 100644 --- a/php/delivery/class-lazy-load.php +++ b/php/delivery/class-lazy-load.php @@ -125,7 +125,7 @@ public function add_features( $tag_element, $attachment_id, $original_tag ) { } $src = $tag_element['atts']['src']; if ( ! $this->media->is_cloudinary_url( $src ) ) { - $src = $this->media->cloudinary_url( $attachment_id, array(), array(), array(), $tag_element['cld-overwrite'] ); + $src = $this->media->cloudinary_url( $attachment_id, array(), array(), null, $tag_element['cld-overwrite'] ); } $tag_element['atts']['data-src'] = $src; $transformations = $this->media->get_transformations_from_string( $src ); diff --git a/php/delivery/class-responsive-breakpoints.php b/php/delivery/class-responsive-breakpoints.php index 582cc1cea..39c3c218c 100644 --- a/php/delivery/class-responsive-breakpoints.php +++ b/php/delivery/class-responsive-breakpoints.php @@ -57,7 +57,7 @@ protected function setup_hooks() { public function add_features( $tag_element, $attachment_id, $original_tag ) { if ( ! $this->media->is_cloudinary_url( $tag_element['atts']['src'] ) ) { - $tag_element['atts']['src'] = $this->media->cloudinary_url( $attachment_id, array(), array(), array(), $tag_element['cld-overwrite'] ); + $tag_element['atts']['src'] = $this->media->cloudinary_url( $attachment_id, array(), array(), null, $tag_element['cld-overwrite'] ); } $transformations = $this->media->get_transformations_from_string( $tag_element['atts']['src'] ); $original_string = Api::generate_transformation_string( $transformations );