| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | } |
| 28 | 28 | return false; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - private function performance_lab_get_webp_src( $attachment_id, $size, $url ) { | |
| 31 | + private function performance_lab_get_webp_src( $attachment_id, $size = 'full', $url ) { | |
| 32 | 32 | $image_object = wp_get_attachment_image_src( $attachment_id, $size ); |
| 33 | 33 | $image_src = call_user_func( self::PERFORMANCE_LAB_FUNCTION_NAME, $image_object[0], 'webp', $attachment_id ); |
| 34 | 34 | if ( ! empty( $image_src ) ) { |
| 35 | 35 | return $image_src; |