Skip to content

Commit 8f22ed1

Browse files
committed
fix linting
1 parent 1d97b52 commit 8f22ed1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inc/traits/dam_offload_utils.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,10 @@ private function attachment_url_to_post_id( $url ) {
246246

247247
$attachment_id = attachment_url_to_postid( $scaled_url );
248248
}
249+
249250
/*
250-
TODO: The logic is a mess, we need to refactor at some point.
251-
Websites may transition between 'www' subdomains and apex domains, potentially breaking references to hosted images. This can cause issues when attempting to match attachment IDs if images are linked using outdated domains. The logic is checking for alternative domains and consider the use of 'scaled' prefixes in image URLs for large images, which might affect ID matching.
251+
* TODO: The logic is a mess, we need to refactor at some point.
252+
* Websites may transition between 'www' subdomains and apex domains, potentially breaking references to hosted images. This can cause issues when attempting to match attachment IDs if images are linked using outdated domains. The logic is checking for alternative domains and consider the use of 'scaled' prefixes in image URLs for large images, which might affect ID matching.
252253
*/
253254
if ( $attachment_id === 0 ) {
254255
if ( strpos( $url, 'www.' ) !== false ) {

0 commit comments

Comments
 (0)