Changeset 2866 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/locale.php
- Timestamp:
- 03/31/2016 09:24:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/locale.php
r2669 r2866 222 222 case 'buddypress': 223 223 if ( function_exists( 'wporg_get_plugin_icon' ) ) { 224 return wporg_get_plugin_icon( $project->slug, $size ); 225 } else { 226 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 227 } 224 $screenshot = wporg_get_plugin_icon( $project->slug, $size ); 225 if ( $screenshot ) { 226 return $screenshot; 227 } 228 } 229 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 228 230 case 'wp-plugins': 229 231 if ( function_exists( 'wporg_get_plugin_icon' ) ) { 230 return wporg_get_plugin_icon( $sub_project->slug, $size ); 231 } else { 232 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 233 } 232 $screenshot = wporg_get_plugin_icon( $sub_project->slug, $size ); 233 if ( $screenshot ) { 234 return $screenshot; 235 } 236 } 237 return '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>'; 234 238 case 'glotpress': 235 239 return '<div class="icon"><img src="https://translate.wordpress.org/translate/gp-templates-new/images/glotpress.png" width="' . $size . '" height="' . $size . '"></div>';
Note: See TracChangeset
for help on using the changeset viewer.