boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

Revision count bump should be an actual count, not incremented #619

Closed boonebgorges closed 6 years ago

boonebgorges commented 6 years ago

I've got a client site where 'bp_docs_revision_count' is out of whack because it keeps incrementing, rather than doing an actual count.

https://github.com/boonebgorges/buddypress-docs/blob/48ea143a3ca6cee2cba04fd76f0ba70fa3b213c3/includes/query-builder.php#L567

This should be changed so that an actual revision count is calculated at save time.