Changeset 4764 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php
- Timestamp:
- 01/24/2017 10:59:27 AM (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
r4622 r4764 2 2 namespace WordPressdotorg\Plugin_Directory\Shortcodes; 3 3 use WordPressdotorg\Plugin_Directory\Template; 4 use WordPressdotorg\Plugin_Directory\Plugin_i18n; 4 5 5 6 /** … … 35 36 36 37 if ( $descriptions && ! empty( $descriptions[ (int)$image['resolution'] ] ) ) { 37 $screen_shot .= '<figcaption>' . $descriptions[ (int)$image['resolution'] ] . '</figcaption>'; 38 $caption = $descriptions[ (int)$image['resolution'] ]; 39 $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $$plugin->ID ] ); 40 $screen_shot .= '<figcaption>' . $caption . '</figcaption>'; 38 41 } 39 42
Note: See TracChangeset
for help on using the changeset viewer.