Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36996, comment 10


Ignore:
Timestamp:
12/15/2016 10:38:46 PM (8 years ago)
Author:
TomasM
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36996, comment 10

    initial v1  
    66<?php
    77if ( is_array( $size ) ) {
    8    $size    = '$size[0]x$size[1]';
    9    $classes = 'attachment-$size size-$size';
     8   $size = "$size[0]x$size[1]";
     9   $classes = 'attachment-' . $size . ' size-' . $size;
    1010} else {
    1111   $classes = 'attachment-' . $size . ' size-' . $size;