• Resolved Roland Murg

    (@murgroland)


    Hey,

    Just wanted to let you know that your plugin is breaking the apply_filters('the_content') filter in WP Admin.

    Please see the wur_meta_box_content_view function in wp-ultimate-review/app/content.php.

    if(is_admin()) {
        return '';
    }

    should be:

    if(is_admin()) {
        return $content;
    }

    This is causing issues in other plugins ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @murgroland
    Thanks for reaching out to us!

    I can understand that you are having some issues when the WP Ultimate Review plugin is activated. Since the functionalities of this plugin are working properly in my development environment, Is it possible for you to share the steps to reproduce the issue? So that I can check accordingly and let you know an update as soon as possible.

    Looking forward to your response and we are always here to assist you.

    Best Regards,
    Prosenjit

    Thread Starter Roland Murg

    (@murgroland)

    The error is obvious, as you are returning an empty string instead of the original $content variable passed to the filter.

    Anywyay, here’s how to reproduce it. Add this code to your theme’s functions.php file:

    add_action('admin_menu', function(){
        add_menu_page( 'Test', 'Test', 'read', 'wur_test', 'wur_debug_test');
    });
    
    function wur_debug_test(){
        echo "<h2>Test</h2>";
        $content = 'This content should appear on the page.';
        echo apply_filters('the_content', $content);
    }

    It will create a new menu in WP Admin called Test. Try accessing this with and without your plugin active.

    Hello There,

    Thanks for the clarification. We appreciate your effort so much. We have already fixed this issue in our development branch and this fix will be added in our plugin’s next update. Till then please stay with us.

    Regards,
    Benjir

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaking the ‘the_content’ filter.’ is closed to new replies.