Making WordPress.org


Ignore:
Timestamp:
01/10/2015 06:41:10 PM (9 years ago)
Author:
obenland
Message:

WP.org Themes: Make sure routes can be matched on index.

Reverts r1089.

It turns out that there is already a built-in way to account for subfolder installs:
By correctly setting the path offset.

See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1101 r1119  
    9292                'canInstall' => false,
    9393                'installURI' => null,
    94                 'adminUrl'   => '',
    95                 'urlBase'    => is_multisite() ? get_blog_details()->path : '/',
     94                'adminUrl'   => parse_url( home_url(), PHP_URL_PATH ),
    9695            ),
    9796            'l10n' => array(
Note: See TracChangeset for help on using the changeset viewer.