Changeset 5197
- Timestamp:
- 03/29/2017 05:40:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php
r5176 r5197 26 26 } 27 27 28 ksort( $screen_shots, SORT_NATURAL ); 29 28 30 /* 29 31 * Find the image that corresponds with the text. … … 35 37 ); 36 38 37 if ( $descriptions && ! empty( $descriptions[ (int) $image['resolution'] ] ) ) {38 $caption = $descriptions[ (int) $image['resolution'] ];39 if ( $descriptions && ! empty( $descriptions[ (int) $image['resolution'] ] ) ) { 40 $caption = $descriptions[ (int) $image['resolution'] ]; 39 41 $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $plugin->ID ] ); 40 42 41 43 $screen_shot .= '<figcaption>' . $caption . '</figcaption>'; 42 44 }
Note: See TracChangeset
for help on using the changeset viewer.