Plugin Directory

Changeset 1272709


Ignore:
Timestamp:
10/25/2015 01:37:25 PM (10 years ago)
Author:
aparg
Message:

Minor fix regarding to PHP version

Location:
aparg-slider
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aparg-slider/tags/2.0/functions.php

    r1271755 r1272709  
    646646        //add_post_meta( '_thumbnail_id', $id, true);
    647647    }
    648     echo wp_get_attachment_image_src($id, 'full')[0];
     648    $img = wp_get_attachment_image_src($id, 'full');
     649    echo $img[0];
    649650
    650651    exit();
     
    671672
    672673        //add_post_meta( '_thumbnail_id', $id, true);
    673         echo wp_get_attachment_image_src($id, 'full')[0];
     674        $img = wp_get_attachment_image_src($id, 'full');
     675        echo $img[0];
    674676    }
    675677
  • aparg-slider/trunk/functions.php

    r1271755 r1272709  
    646646        //add_post_meta( '_thumbnail_id', $id, true);
    647647    }
    648     echo wp_get_attachment_image_src($id, 'full')[0];
     648    $img = wp_get_attachment_image_src($id, 'full');
     649    echo $img[0];
    649650
    650651    exit();
     
    671672
    672673        //add_post_meta( '_thumbnail_id', $id, true);
    673         echo wp_get_attachment_image_src($id, 'full')[0];
     674        $img = wp_get_attachment_image_src($id, 'full');
     675        echo $img[0];
    674676    }
    675677
Note: See TracChangeset for help on using the changeset viewer.