Frontier Post
[resolved] Bug with the Frontier Edit link (6 posts)

  1. kisshomaru
    Posted 3 years ago #

    Great plugin, but has an issue. I have both regular posts and custom ones (cpts).
    I don't want now to use the plugin for the cpts, however the Edit link in front end will get changed for every post. This means that the link will actually try to edit the post id of the custom post from front end and will cause (big) issues when someone does that, as the frontier shortcode page will still open and one can still make changes to the main post body and add tags and categories that are just not there for those types.
    The edit link should be created dynamically based on the post type.
    (Same happens for example with regular pages for users that can modify them, click Edit and modify a page instead of a post...)

    Only workaround that I can see right now is to try to disable the plugin on specific pages and/or for specific content, probably using something like Plugin Organizer.
    Still, not sure if you are changing the link globally, or changes are applied at runtime.

    PS. In any case, this is great work you did.


  2. finnj
    Plugin Author

    Posted 3 years ago #

    Thanks for pointing this out, I will look at it.

    Most likely I will ensure that Frontier edit os only used on stanrd posts, and as such custom post types and pages will be redirected to the back-end (as standard wp)

    I am on vacation, so next release will be in about 3 weeks

  3. finnj
    Plugin Author

    Posted 3 years ago #

    In the mean time you could try an add the following in the frontier_edit_post_link function just after is_admin() in frontier-post.php

    || (get_post_type($post_id) != 'post')

    I am unable to test this as I do not have access to my test system

  4. kisshomaru
    Posted 3 years ago #

    That worked beautifully. Thank You.
    Also, there might be another bug: Before this fix, I tried un-checking the Frontier Edit for all the user roles used (so it would go to back end for all) and it seemed to not make any difference. This does not bother me as the fix is what I needed, but it might need some attention for others.
    Again, thanks for the great work. I'll mark the topic solved after the official update.

  5. finnj
    Plugin Author

    Posted 3 years ago #

    Happy that it worked for you, will check it for the next release.

  6. finnj
    Plugin Author

    Posted 3 years ago #

    the above fix is implemented in version 1.5.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frontier Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic