Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php
- Timestamp:
- 12/19/2017 04:22:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php
r5197 r6287 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Shortcodes; 3 3 4 use WordPressdotorg\Plugin_Directory\Template; 4 5 use WordPressdotorg\Plugin_Directory\Plugin_i18n; … … 20 21 // All indexed from 1. 21 22 $descriptions = get_post_meta( $plugin->ID, 'screenshots', true ) ?: array(); 22 $screen_shots = get_post_meta( $plugin->ID, 'assets_screenshots', true ) ?: array(); ;23 $screen_shots = get_post_meta( $plugin->ID, 'assets_screenshots', true ) ?: array(); 23 24 24 25 if ( empty( $screen_shots ) ) { … … 33 34 */ 34 35 foreach ( $screen_shots as $image ) { 35 $screen_shot = sprintf( '<a href="%1$s" rel="nofollow"><img class="screenshot" src="%1$s" alt="" /></a>', 36 $screen_shot = sprintf( 37 '<a href="%1$s" rel="nofollow"><img class="screenshot" src="%1$s" alt="" /></a>', 36 38 esc_url( Template::get_asset_url( $plugin, $image ) ) 37 39 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)