mikethicke / wp-museum

Wordpress plugin for operating an online museum.
Other
2 stars 2 forks source link

Clicking an artifact "edit" link on a collections editing page brings you to the "All Posts" lists #94

Closed eweidenh closed 1 year ago

eweidenh commented 2 years ago

"view" functions as it should

image

mikethicke commented 1 year ago

For some reason this doesn't manifest either in my local development environment or on the utsic.mikethicke.com testing site.

The get_edit_post_link function encodes the '&' by default, which seems like the cause of the problem.

https://github.com/mikethicke/wp-museum/commit/6136d391865c0237615a2ab5a92e85a1f0c1757e changes the context of get_edit_post_type to 'link'.

I believe this will address the issue, though I can't test it as it doesn't manifest on my machines.