| Conditions | 5 |
| Paths | 7 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function parse(string $content): string |
||
| 29 | { |
||
| 30 | if (!$images = $this->resolveImages($content)) { |
||
| 31 | return $content; |
||
| 32 | } |
||
| 33 | |||
| 34 | if ($attachmentIds = $this->resolveAttachmentIds($images['img_tags'])) { |
||
| 35 | _prime_post_caches($attachmentIds, false, true); |
||
| 36 | } |
||
| 37 | |||
| 38 | foreach ($images['img_tags'] as $index => $tag) { |
||
| 39 | $transform = 'resize'; |
||
| 40 | |||
| 41 | $attachmentId = null; |
||
| 42 | |||
| 43 | $fullSizeUrl = null; |
||
| 44 | |||
| 45 | $src = $srcOrig = $images['img_urls'][$index]; |
||
| 46 | |||
| 47 | if (!apply_filters('imgix_image_url_processable', true, $src)) |
||
| 48 | continue; |
||
| 49 | } |
||
| 50 | |||
| 51 | return $content; |
||
| 52 | } |
||
| 92 |