Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #32117, comment 1


Ignore:
Timestamp:
10/09/2015 10:33:28 AM (9 years ago)
Author:
jnz31
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32117, comment 1

    v1 v2  
    2323{{{
    2424$img = wp_get_attachment_metadata( $img );
    25 $upload_dir = wp_upload_dir()['baseurl'];
     25$upload_dir = wp_upload_dir()['baseurl'] . '/';
    2626echo '<div class="full"><img src="' . $upload_dir . $img['sizes']['thumbnail']['path'] . '" alt="" />';
    2727}}}