[wp-trac] [WordPress Trac] #40979: add_rewrite_endpoint() doesn't work when applied to unattached media

WordPress Trac noreply at wordpress.org
Fri Jun 9 14:52:16 UTC 2017


#40979: add_rewrite_endpoint() doesn't work when applied to unattached media
---------------------------+-----------------------------
 Reporter:  henry.wright   |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 {{{add_rewrite_endpoint( 'foo', EP_ATTACHMENT );}}} doesn't seem to be
 working for unattached media items. For example visiting the following
 returns a 404:

 example.com/attachment-slug/foo/

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40979>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list