Changeset 8729 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
- Timestamp:
- 05/03/2019 07:03:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r8654 r8729 365 365 if ( $svn_assets_folder ) { // /assets/ may not exist. 366 366 foreach ( $svn_assets_folder as $asset ) { 367 // screenshot-0(-rtl) .(png|jpg|jpeg|gif) || icon.svg368 if ( ! preg_match( '!^(?P<type>screenshot|banner|icon)( -(?P<resolution>[\dx]+)(-rtl)?\.(png|jpg|jpeg|gif)|\.svg)$!i', $asset['filename'], $m ) ) {367 // screenshot-0(-rtl)(-de_DE).(png|jpg|jpeg|gif) || icon.svg 368 if ( ! preg_match( '!^(?P<type>screenshot|banner|icon)(?:-(?P<resolution>[\dx]+)(-rtl)?(?:-(?P<locale>[a-z]{2,3}(?:_[A-Z]{2})?(?:_[a-z0-9]+)?))?\.(png|jpg|jpeg|gif)|\.svg)$!i', $asset['filename'], $m ) ) { 369 369 continue; 370 370 } … … 375 375 $location = 'assets'; 376 376 $resolution = isset( $m['resolution'] ) ? $m['resolution'] : false; 377 378 $assets[ $type ][ $asset['filename'] ] = compact( 'filename', 'revision', 'resolution', 'location' ); 377 $locale = isset( $m['locale'] ) ? $m['locale'] : false; 378 379 $assets[ $type ][ $asset['filename'] ] = compact( 'filename', 'revision', 'resolution', 'location', 'locale' ); 379 380 } 380 381 }
Note: See TracChangeset
for help on using the changeset viewer.