Changeset 1342 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
- Timestamp:
- 02/27/2015 01:54:28 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r1338 r1342 305 305 $screenshots = preg_grep( '/screenshot.(jpg|jpeg|png|gif)/', $theme_files ); 306 306 usort( $screenshots, array( $this, 'sort_by_string_length' ) ); 307 308 $this->theme->screenshot = array_pop( $screenshots ); 307 $screenshot = array_pop( $screenshots ); 308 309 $this->theme->screenshot = basename( $screenshot ); 309 310 310 311 return (bool) $this->theme->screenshot;
Note: See TracChangeset
for help on using the changeset viewer.