Making WordPress.org


Ignore:
Timestamp:
06/12/2016 11:54:09 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Add support for RTL banners.

Fixes #1740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r3335 r3341  
    292292        if ( $svn_assets_folder ) { // /assets/ may not exist.
    293293            foreach ( $svn_assets_folder as $asset ) {
    294                 // screenshot-0.(png|jpg|jpeg|gif)  ||  icon.svg
    295                 if ( ! preg_match( '!^(?P<type>screenshot|banner|icon)(-(?P<resolution>[\dx]+)\.(png|jpg|jpeg|gif)|\.svg)$!i', $asset['filename'], $m ) ) {
     294                // screenshot-0(-rtl).(png|jpg|jpeg|gif)  ||  icon.svg
     295                if ( ! preg_match( '!^(?P<type>screenshot|banner|icon)(-(?P<resolution>[\dx]+)(-rtl)?\.(png|jpg|jpeg|gif)|\.svg)$!i', $asset['filename'], $m ) ) {
    296296                    continue;
    297297                }
Note: See TracChangeset for help on using the changeset viewer.