Make WordPress Core


Ignore:
Timestamp:
05/27/2014 10:54:54 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Avoid a PHP notice in bundled themes if no images were found.

props nabil_kadimi.
fixes #28361.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/image.php

    r25746 r28585  
    5858            break;
    5959    }
    60     $k++;
     60
    6161    // If there is more than 1 attachment in a gallery
    6262    if ( count( $attachments ) > 1 ) {
     63        $k++;
    6364        if ( isset( $attachments[ $k ] ) )
    6465            // get the URL of the next image attachment
Note: See TracChangeset for help on using the changeset viewer.