doesn’t play well with wp-user-activity plugin
-
I just found an incompatibility between this plugin and wp-user-activity that I believe is a bug in
custom-permalinks.Steps to reproduce:
- create a page or public post and set a custom permalink for it
- publish that page/post and verify that you can view it on the frontend
- install and activate
wp-user-activity - edit the page/post created in step #1 and update the page/post
- try to view the page/post on the frontend and you will get a 404 error
The reason for the 404 is that:
- whenever activity happens (i.e., creation, update, delete, etc) on a post/page (any many other operations on the backend),
wp-user-activityinserts another post with a custom post type (by hooking intosave_post) that records the who/what/end of the activity. - The custom post type that
wp-user-activityinserts is not public - the function that
custom-permalinkshooks tosave_post(custom_permalinks_save_post()) adds it’scustom_permalinkpost meta’s not only to the page/post that was edited by the user but <b>also</b> to the custom post type thatwp-user-activityinserts - then, when the original page/post with a custom-permalink is requested on the frontend,
custom_permalinks_request()retrieves the post meta that was added to the custom post type inserted by `wp-user-activity and tells WP to redirect to it</li>
<li>since that custom post type inserted bywp-user-activityisn’t public, WP returns the 404 error.
I’ve created a patch that fixes this one case. Is there somewhere I can send you that patch?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘doesn’t play well with wp-user-activity plugin’ is closed to new replies.