Making WordPress.org


Ignore:
Timestamp:
10/16/2019 06:09:41 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: 404 on invalid browse requests.

Fixes #4415.

File:
1 edited

Legend:

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

    r9180 r9188  
    156156
    157157    // Add the browse/* views
    158     add_rewrite_tag( '%browse%', '(featured|popular|new|updated|favorites)' );
     158    add_rewrite_tag( '%browse%', '([^/]+)' );
    159159    add_permastruct( 'browse', 'browse/%browse%' );
    160160    add_rewrite_tag( '%favorites_user%', '([^/]+)' );
    161     //add_permastruct( 'favorites_user', 'browse/favorites/%favorites_user%' ); // TODO: Implment in JS before enabling
     161    //add_permastruct( 'favorites_user', 'browse/favorites/%favorites_user%' ); // TODO: Implement in JS before enabling
    162162
    163163    if ( ! defined( 'WPORG_THEME_DIRECTORY_BLOGID' ) ) {
Note: See TracChangeset for help on using the changeset viewer.