Opened 3 years ago

Closed 2 years ago

#15165 closed enhancement (maybelater)

MS recursive lookup bug

Reported by: M_Olivier Owned by:
Priority: normal Milestone:
Component: Multisite Version: 3.0.1
Severity: major Keywords:
Cc: M_Olivier

Description (last modified by nacin)

Hi,

After upgrading a project from WPMU to WP 3.0.1 I've stumbled upon a small bug in /wp-includes/ms-install.php

The case where it goes wrong:

I have 3 different blogs, each of which has its own theme assigned:

Blog:            Theme:
/                themename
/test            themename-test
/test/test2      themename-test-test2

When I navigate to http://wordpressurl/test/test2, WordPress displays the 'themename-test' theme's 404 page.

Expected behaviour: WordPress displays the correct page within the 'themename-test-test2' theme

I've attached a diff file with a fix

Attachments (2)

ms-settings.patch (1.6 KB) - added by M_Olivier 3 years ago.
wp-ms-recursionfix.patch (2.6 KB) - added by M_Olivier 3 years ago.
New fix

Download all attachments as: .zip

Change History (8)

  • Version set to 3.0.1
  • Cc M_Olivier added
  • Component changed from General to Multisite
  • Severity changed from normal to major

The other patch had a serious bug, please check out the new patch. Please test and/or improve it and add it to a future release?

Thanks

New fix

So, ehm, like, hello?

  • Description modified (diff)
  • Type changed from defect (bug) to enhancement

I wasn't at all aware we supported nested subdirectories.

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

We don't support nested subdirectories. You hypothetically can always just override this in sunrise.php and handle your own detection.

Note: See TracTickets for help on using tickets.