In the code editor, add the following code to limit post revisions to 5:
php
if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 5);
If you want to disable post revisions entirely, use this code instead:
php
if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', false);