Making WordPress.org

Changeset 4455


Ignore:
Timestamp:
12/01/2016 10:50:57 PM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Support screenshot captions for plugins which use the screenshot-01.jpg format (note the extra 0).

See https://wordpress.slack.com/archives/meta/p1480631536002122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php

    r4432 r4455  
    3434            );
    3535
    36             if ( $descriptions && ! empty( $descriptions[ $image['resolution'] ] ) ) {
    37                 $screen_shot .= '<figcaption>' . $descriptions[ $image['resolution'] ] . '</figcaption>';
     36            if ( $descriptions && ! empty( $descriptions[ (int)$image['resolution'] ] ) ) {
     37                $screen_shot .= '<figcaption>' . $descriptions[ (int)$image['resolution'] ] . '</figcaption>';
    3838            }
    3939
Note: See TracChangeset for help on using the changeset viewer.