We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585890a commit ebfde78Copy full SHA for ebfde78
resolver/blog/post.php
@@ -7,9 +7,9 @@ public function get($args)
7
$this->load->model('blog/post');
8
$post = $this->model_blog_post->getPost($args['id']);
9
10
- if ($post->imageId) {
11
- $thumb = wp_get_attachment_image_src($post->image_id, 'full');
12
- $thumbLazy = wp_get_attachment_image_src($post->image_id, array(10, 10));
+ if ($post->image_id) {
+ $thumb = wp_get_attachment_url($post->image_id, 'full');
+ $thumbLazy = wp_get_attachment_url($post->image_id, array(10, 10));
13
} else {
14
$thumb = '';
15
$thumbLazy = '';
0 commit comments