Support » Plugin: Frontier Post » Bug with the Frontier Edit link

  • Resolved kisshomaru


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author finnj


    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

    Plugin Author finnj


    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

    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.

    Plugin Author finnj


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

    Plugin Author finnj


    the above fix is implemented in version 1.5.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug with the Frontier Edit link’ is closed to new replies.