Opened 20 years ago
Closed 19 years ago
#1108 closed defect (bug) (wontfix)
Conflicting PHP file with same name as Page slug.
Reported by: | Kafkaesqui | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 1.5 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
If a php file residing in the root directory of the weblog (with wp-blog-header.php, etc.) has a filename matching that of an existing Page slug, WordPress uses that PHP file instead of the default, theme or custom template. For example, the file "about.php" loads when accessing the "about" Page.
Change History (4)
Note: See
TracTickets for help on using
tickets.
After a bit more testing I see this is not just an issue with PHP files. It seems any file type will do it (tried about.txt, about.doc and about.jpg!), as long as it's using the same filename.