Opened 10 years ago
Closed 6 years ago
#37996 closed defect (bug) (maybelater)
Unnecessary rewrite rules added for the /embed endpoint
| Reported by: | johnbillion | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Rewrite Rules | Version: | 4.4 |
| Severity: | minor | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
WordPress appends /embed to a bunch of rewrite rules that it shouldn't. By default, the following rewrite rules are present on every site but are not valid:
category/(.+?)/embed/?$tag/([^/]+)/embed/?$type/([^/]+)/embed/?$comments/embed/?$search/(.+)/embed/?$author/([^/]+)/embed/?$([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/embed/?$([0-9]{4})/([0-9]{1,2})/embed/?$([0-9]{4})/embed/?$[0-9]{4}/[0-9]{1,2}/[^/]+/([^/]+)/embed/?$
These are generated in WP_Rewrite::generate_rewrite_rules().
Related: #35067
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See also #35567 for supporting embeds for other object types