Making WordPress.org

Changeset 2558


Ignore:
Timestamp:
02/23/2016 10:22:11 AM (11 years ago)
Author:
dd32
Message:

Plugins Directory: - is a valid character within a Rosetta subdmain.
Props @ocean90
See #1584, r2557

File:
1 edited

Legend:

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

    r2557 r2558  
    139139                                static $localized_url = null;
    140140                                if ( is_null( $localized_url ) ) {
    141                                         $localized_url = 'https://' . preg_replace( '![^a-z.]+!', '', $_SERVER['HTTP_HOST'] );
     141                                        $localized_url = 'https://' . preg_replace( '![^a-z.-]+!', '', $_SERVER['HTTP_HOST'] );
    142142                                }
    143143
Note: See TracChangeset for help on using the changeset viewer.