{"id":38112,"date":"2015-08-10T00:34:09","date_gmt":"2015-08-10T00:34:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/revision-strike\/"},"modified":"2017-09-16T17:45:53","modified_gmt":"2017-09-16T17:45:53","slug":"revision-strike","status":"publish","type":"plugin","link":"https:\/\/bs.wordpress.org\/plugins\/revision-strike\/","author":7129452,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.6.0","stable_tag":"0.6.0","tested":"4.8.28","requires":"4.2","requires_php":"5.4","requires_plugins":"","header_name":"Revision Strike","header_author":"Steve Grunwell","header_description":"","assets_banners_color":"","last_updated":"2017-09-16 17:45:53","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/stevegrunwell.com\/blog\/revision-strike","header_author_uri":"https:\/\/stevegrunwell.com","rating":5,"author_block_rating":0,"active_installs":70,"downloads":5878,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.6.0":"<p>Fixed bug where warnings were being thrown when Revision Strike was being run verbosely via WP-CLI.<\/p>","0.3.0":"<p>Added new <code>revisionstrike_get_revision_ids<\/code> filter.<\/p>","0.2":"<p>Performance enhancements, added a <code>strike-all<\/code> WP-CLI command to automatically clean up <em>all<\/em> of your eligible post revisions in one fell swoop.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3.0","0.4.0","0.4.1","0.5.0","0.6.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1216698","resolution":"1","location":"assets"}},"screenshots":{"1":"The Tools &gt; Revision Strike page in action."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4567,732,247,6243],"plugin_category":[52,54,59],"plugin_contributors":[81424],"plugin_business_model":[],"class_list":["post-38112","plugin","type-plugin","status-publish","hentry","plugin_tags-cron","plugin_tags-maintenance","plugin_tags-performance","plugin_tags-revisions","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_contributors-stevegrunwell","plugin_committers-stevegrunwell"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/revision-strike.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/revision-strike\/assets\/screenshot-1.png?rev=1216698","caption":"The Tools &gt; Revision Strike page in action."}],"raw_content":"<!--section=description-->\n<p>Unless post revisions are explicitly limited, WordPress will build up a hefty sum of revisions over time. While it's great to have revision history for some recent content, the chances that old revisions will be necessary diminish the longer a post has been published. Revision Strike is designed to automatically remove these unneeded revisions on older, published posts.<\/p>\n\n<h4>How does it work?<\/h4>\n\n<p>First, a threshold is set, with a default of 30 days. Once a day, Revision Strike will run and find any post revisions in the database attached to published posts with a post date of at least 30 (or your custom threshold) days ago, and \"strike\" (tear-down and remove) them from the WordPress database.<\/p>\n\n<h4>Contributing<\/h4>\n\n<p>If you'd like to help build Revision Strike, please <a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\">visit the plugin's GitHub page<\/a>. Contributors are welcome, and <a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike#contributing\">details can be found in the repo's README file<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the revision-strike\/ directory to your WordPress installation's plugin directory (by default, \/wp-content\/plugins).<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<p>Activating the plugin will automatically register a daily WP Cron event to clean up revisions on established posts. If you'd prefer not to wait, you can explicitly purge post revisions through the 'Tools &gt; Revision Strike' page within WordPress or with <a href=\"http:\/\/wp-cli.org\/\">WP-CLI<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the revision-strike\/ directory to your WordPress installation's plugin directory (by default, \/wp-content\/plugins).<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<p>Activating the plugin will automatically register a daily WP Cron event to clean up revisions on established posts. If you'd prefer not to wait, you can explicitly purge post revisions through the 'Tools &gt; Revision Strike' page within WordPress or with <a href=\"http:\/\/wp-cli.org\/\">WP-CLI<\/a>.<\/p><\/dd>\n<dt>Can I configure how long a post needs to be published before its revisions can be removed?<\/dt>\n<dd><p>Yes. On the Settings &gt; Writing page there is an option to set the default number of days a post must be published before removing its revisions, but out of the box it's 30 days.<\/p><\/dd>\n<dt>Can I manually run Revision Strike without having to wait for the daily WP Cron event?<\/dt>\n<dd><p>Yup, just visit Tools &gt; Revision Strike within the WordPress admin area. If you're a <a href=\"http:\/\/wp-cli.org\/\">WP-CLI<\/a> user, you can also run Revision Strike from the command line (run <code>wp revision-strike clean --help<\/code> for a full list of options).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>For a full list of changes, please see the <a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/blob\/develop\/CHANGELOG.md\">Change Log in the GitHub repo<\/a>.<\/p>\n\n<h4>0.6.0<\/h4>\n\n<p><em>September 16, 2017<\/em><\/p>\n\n<ul>\n<li>Fixed bug where warnings were being thrown when Revision Strike was being run verbosely via WP-CLI. Props @ivankruchkoff.<\/li>\n<li>Re-licensed the plugin under the MIT license.<\/li>\n<\/ul>\n\n<h4>0.5.0<\/h4>\n\n<p><em>May 15, 2017<\/em><\/p>\n\n<ul>\n<li>Add the <code>revisionstrike_capabilities<\/code> filter to allow setting required capabilities to access Revision Strike settings page. Props @pereirinha. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/pull\/28\">#28<\/a>)<\/li>\n<\/ul>\n\n<h4>0.4.1<\/h4>\n\n<p><em>March 4, 2017<\/em><\/p>\n\n<ul>\n<li>Adjusted the visibility of <code>RevisionStrikeCLI::log_deleted_revision()<\/code> in the WP-CLI component.<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<p><em>July 29, 2016<\/em><\/p>\n\n<ul>\n<li>Move from the manual pre-commit hook to <a href=\"https:\/\/github.com\/stevegrunwell\/wp-enforcer\">WP Enforcer<\/a>.\n\n<ul>\n<li>As a result, minor standards-related changes have been made to the code to comply with the <a href=\"https:\/\/codex.wordpress.org\/WordPress_Coding_Standards\">WordPress Coding Standards<\/a>.<\/li>\n<\/ul><\/li>\n<li>Re-work the copy on Tools &rsaquo; Revision Strike to be more clear to site administrators. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/26\">#26<\/a>)<\/li>\n<li>Add additional tests around the Tools &rsaquo; Revision Strike page confirmation messages. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/25\">#25<\/a>)<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<p><em>June 20, 2016<\/em><\/p>\n\n<ul>\n<li>Lock Composer dependency versions to ensure more consistent testing via Travis-CI.<\/li>\n<li>Add the <code>revisionstrike_get_revision_ids<\/code> filter to enable third-party plugins and themes to alter the array of revision IDs. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/21\">#21<\/a>)<\/li>\n<li>Implement Grunt to more consistently build releases. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/18\">#18<\/a>)<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<p><em>August 16, 2015<\/em><\/p>\n\n<ul>\n<li>Added a \"Limit\" setting to Settings &rsaquo; Writing. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/13\">#13<\/a>)<\/li>\n<li>Added a \"clean-all\" WP-CLI command. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/14\">#14<\/a>)<\/li>\n<li>Clarified language on the Settings &rsaquo; Writing and Tools &rsaquo; Revision Strike pages. Props to @GhostToast for the suggestion! (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/16\">#16<\/a>)<\/li>\n<li>Strike requests are now batched into groupings of 50 IDs at a time to avoid overwhelming underpowered machines. (<a href=\"https:\/\/github.com\/stevegrunwell\/revision-strike\/issues\/17\">#17<\/a>)<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<p><em>August 9, 2015<\/em><\/p>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Periodically purge old post revisions via WP Cron.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38112"}],"author":[{"embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stevegrunwell"}],"wp:attachment":[{"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38112"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38112"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38112"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38112"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38112"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}