#11879 closed enhancement (wontfix)
Redirect in merged files instead of pure deletion?
| Reported by: | TobiasBg | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | dev-feedback |
| Cc: | Focuses: |
Description
Just a quick though that crossed my mind:
With the recent merging of files into other files, due to the Custom Post Typoes support (i.e. [12708], [12702] and more from #9674), several files like page.php, page-new.php have been deleted.
This could potentially break backward compatibility for some plugins that link to these files (i.e. a plugin that has a link to "create a new page").
My suggestion: Instead of plain deleting them, they could be reduced to something like a PHP redirect (header()) to the correct new page (with passed parameters from the query string conserved).
I.e. page.php could contain a header redirect to post.php?post_type=page(+rest of query string).)
At the same time the redirect should be marked as deprecated, so that noboby will set new links to it, but use the correct new file.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
We can add them later if needed. Right now I want to see what breaks with them removed.