How does WP Security Audit Log keeps a log of content changes?

You are here:
Back

Whenever the content of a post or page is changed the WP Security Audit Log plugin keeps a record of the change in the WordPress audit trail with Alert 2020, as seen in the below screenshot.

Alert 2020 - WordPress content change

In every content change alert (2020) there is a link that links that points to the revision viewer. In the viewer you can see all the content that was added (highlighted in green), and all the content that was deleted (highlighted in red). For example in the below screenshot we can see that the word best was replaced with the text most comprehensive. The sentence Download and install now was also added.

The WordPress revision viewer

How Does WP Security Audit Log Keeps Track of Content Changes?

The WP Security Audit Log plugin uses the built-in posts and pages WordPress revisions system, which is enabled by default. In case yours are not you can enable them by following the instructions in the post about WordPress content revisions.

What if WordPress Revisions are Disabled?

If WordPress revisions are disabled the plugin will still keep a record of content changes in the WordPress audit log but you won’t be able to see the actual changes (diff).

Why Does the WP Security Audit Log Plugin Use WordPress Revisions?

We have been asked this a few times, especially since other plugins have their own revision system. We use the WordPress revisions since it is a system that have been tested and is very robust, hence there is no point in reinventing the wheel. Many people are concerned about the database size and performance when using revisions, but if we had to build our own system it would still require resources.