Making WordPress.org


Ignore:
Timestamp:
04/10/2017 12:54:39 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: _ is a valid character in plugin slugs.

See ​https://wordpress.slack.com/archives/C02QB8GMM/p1491656777422718

File:
1 edited

Legend:

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

    r5179 r5305  
    4040                $version = 'trunk';
    4141
    42                 if ( ! preg_match( "!^(?P<slug>[a-z0-9-]+)(.(?P<version>.+))?.zip$!i", $zip, $m ) ) {
     42                if ( ! preg_match( "!^(?P<slug>[a-z0-9-_]+)(.(?P<version>.+))?.zip$!i", $zip, $m ) ) {
    4343                        throw new Exception( __METHOD__ . ": Invalid URL." );
    4444                }
Note: See TracChangeset for help on using the changeset viewer.