• Resolved mirallesdesign

    (@mirallesdesign)


    When I use Permalink Manager Lite, the edit option on my bbPress Forum Topics stops working, it just reloads the page, when I deactivate the plugin, it works fine

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

    (@mbis)

    Hi @mirallesdesign,

    Could you try to change “Redirect mode” to “Disable” in Permalink Manager settings? This should stop the redirect.

    I will try to provide you with a solution in next 24 hours.

    Best regards,
    Maciej

    Plugin Author Maciej Bis

    (@mbis)

    Hi @mirallesdesign,

    I checked the problem and there is a better solution. Could you try to add the below snippet to functions.php file in (child) theme directory?

    function pm_bbpress_endpoints($endpoints) {
    	return "{$endpoints}|edit";
    }
    add_filter('permalink_manager_endpoints', 'pm_bbpress_endpoints');

    Best regards,
    Maciej

    Thread Starter mirallesdesign

    (@mirallesdesign)

    Thanks for the response, disabling the redirect mode works fine, but the snippet with the redirect enabled doesn’t.

    Plugin Author Maciej Bis

    (@mbis)

    Hi @mirallesdesign,

    Could you provide me a sample edit URL? If you do not want to show it publicly, please send it to my email contact /at/ maciejbis.net.

    Plugin Author Maciej Bis

    (@mbis)

    To whom it may concern 🙂

    The problem will be fixed in the next release. If you would like to fix before the new version of plugin is published, please use the below snippet:

    function pm_stop_bbpress_redirect() {
        global $wp_query;
    
        if(!empty($wp_query->query_vars['edit'])) {
            $wp_query->query_vars['do_not_redirect'] = 1;
        }
    }
    add_action('wp', 'pm_stop_bbpress_redirect');

    The code should be added to functions.php file in (child) theme directory.

    Best regards,
    Maciej

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘bbPress Topic Edit Error’ is closed to new replies.