Making WordPress.org

Changeset 7047


Ignore:
Timestamp:
04/06/2018 03:51:49 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Geopattern icons: Change the path the files are available at to /plugins/geopattern-icon/$slug.$color.svg to aid in debugging.

See #3265.

File:
1 edited

Legend:

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

    r7046 r7047  
    502502        add_rewrite_rule( '^search/([^/]+)/?$', 'index.php?s=$matches[1]', 'top' );
    503503
     504        // Add a rule for generated plugin icons. geopattern-icon/demo.svg | geopattern-icon/demo.abc123.svg
     505        add_rewrite_rule( '^geopattern-icon/([^/]+)(\.([a-f0-9]{6}))?\.svg$', 'index.php?name=$matches[1]&geopattern_icon=$matches[3]', 'top' );
     506
    504507        // Handle plugin admin requests
    505508        add_rewrite_rule( '^([^/]+)/advanced/?$', 'index.php?name=$matches[1]&plugin_advanced=1', 'top' );
    506 
    507         // Add a rule for generated plugin icons
    508         add_rewrite_rule( '^([^/]+)/geopattern-icon(/([^/]*))?/?$', 'index.php?name=$matches[1]&geopattern_icon=$matches[3]', 'top' );
    509509
    510510        // Handle the old plugin tabs URLs.
Note: See TracChangeset for help on using the changeset viewer.