Skip Navigation

The CRED delete post link shortcode fails to redirect to a specific post

Resolved

Reported for: Toolset Forms 1.9.4

Resolved in: 1.9.6

Topic Tags: Toolset Forms

Symptoms

The cred_delete_post_link shortcode can redirect to a specific page after trashing or deleting a post. To do so, it uses an attribute containing the ID of the page to redirect to, as well as another attribute that ensurs that there will be some action executed after deleting the post.

In Toolset CRED 1.9.3, we introduced a new way to insert those shortcodes, but we missed that second attribute. As a result, CRED delete post link shortcodes created after 1.9.3 are not redirecting to the right specific page after deleting or trashing a post.

Workaround

we will include a fix for this issue in the next version of Toolset CRED.

In the meantime, this patch can be applied over CRED 1.9.4 by uploading the file it contains, replacing the one witht he same name, located in /public/js/cred_shortcode.js. The patch will make sure that all new delete post link shortcodes will include all the needed attributes.

However, the fix can not modify existing shortcodes that miss the right attributes. To fix those existing shortcodes, just add this attribute class="cred-refresh-after-delete" to the broken cred_delete_post_link shortcode.

Comments are closed