Making WordPress.org

Changeset 1150


Ignore:
Timestamp:
01/16/2015 02:03:30 AM (10 years ago)
Author:
obenland
Message:

Theme Directory: Prevent URL parameters from being used as theme slugs.

See #745.

File:
1 edited

Legend:

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

    r1118 r1150  
    372372        );
    373373
    374         // Reserve "twenty" names for wordpressdotorg.
    375374        $reserved_slugs = array(
     375            // Reserve "twenty" names for wordpressdotorg.
    376376            'twentyten', 'twentyeleven', 'twentytwelve','twentythirteen', 'twentyfourteen', 'twentyfifteen',
    377377            'twentysixteen', 'twentyseventeen','twentyeighteen', 'twentynineteen', 'twentytwenty',
     378
     379            // Theme Showcase URL parameters.
     380            'browse', 'tag', 'search', 'filter', 'upload', 'commercial',
     381            'featured', 'popular', 'new', 'updated',
    378382        );
    379383
Note: See TracChangeset for help on using the changeset viewer.