• Resolved maltmann

    (@maltmann)


    WP Statistics version 13.2.6

    Optimization > Purging > Empty Table > All
    results in an “Access denied” message.

    Caused by a logical issue in
    wp-statistics/includes/admin/class-wp-statistics-admin-ajax.php
    function empty_table_action_callback()

    Line 217:
    The selected table name (in this case “all”) is compared to the valid table names, which does not match. “Access denied” error is returned, AJAX action cancelled.

    The check for the “all” selection is only done later, including a permission check (‘manage’) starting at line 222. But that’s too late. AJAX action is already cancelled by previous error.

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

The topic ‘Optimization > Purging > Empty Table > All not working’ is closed to new replies.