{"id":25388,"date":"2013-09-25T09:55:18","date_gmt":"2013-09-25T09:55:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/prepare-new-version\/"},"modified":"2014-09-09T12:55:32","modified_gmt":"2014-09-09T12:55:32","slug":"prepare-new-version","status":"publish","type":"plugin","link":"https:\/\/srd.wordpress.org\/plugins\/prepare-new-version\/","author":13151445,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"4.0.38","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Prepare New Version","header_author":"Lionel POINTET, GLOBALIS media systems","header_description":"","assets_banners_color":"174754","last_updated":"2014-09-09 12:55:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/prepare-new-version\/","header_author_uri":"http:\/\/www.globalis-ms.com","rating":4.8,"author_block_rating":0,"active_installs":6000,"downloads":4939,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"5"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"985303","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"985303","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"778231","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"778231","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9","0.9.1","0.9.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"778231","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"778231","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"778231","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"778231","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"778231","resolution":"5","location":"assets"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"778231","resolution":"6","location":"assets"},"screenshot-7.png":{"filename":"screenshot-7.png","revision":"778231","resolution":"7","location":"assets"}},"screenshots":{"1":"<strong>New handy box in editing view<\/strong> - When creating\/editing a post or a page, users get access to a new box to prepare a new version or create a copy of the document with only <strong>one click<\/strong> !","2":"And when you're ready to update the current online article, it will just take you one more click. Easy as a pie!","3":"Create a new post as usual. When you\u2019re done,  you can of course publish it (A) or directly create a new version (B), or even create a copy (C). If you directly create a new version or a copy, the post is saved as a draft.","4":"After you prepared a new version, the \u201cPending versions\u201d block now looks like the picture below (D). To access the pending versions list, you first need to edit the original post, or one of its pending versions.","5":"Once you clicked on a pending version of a post, you can edit it as a normal one. Inside the \u201cPublish\u201d block, hit the save button (E) to save the pending version you\u2019re working on, or the preview button (F). To delete the pending version, click on the link \u201cMove to trash\u201d (H). If you want to replace the current version of the original post with the pending version click on the button \u201cUpdate original\u201d (G). You can also directly move to another pending version by clicking the link (I), create another new version (J) or create a complete new post (K) based on the current pending version.","6":"<strong>Preparing a new version<\/strong> - A copy of the article is created. \"[New version]\" is automatically prepended to its title and a link to the original article is available at the top of the editing form. The created post is completely independent of the original. It is in a Draft status and \"[Copy]\" is automatically prepended to its title.","7":"In the Posts list, a new column \u201cPending version\u201d appears in last position."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2814,2738,18144,1840,4853],"plugin_category":[46],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-25388","plugin","type-plugin","status-publish","hentry","plugin_tags-clone","plugin_tags-copy","plugin_tags-duplication","plugin_tags-editing","plugin_tags-replacement","plugin_category-editor-and-writing","plugin_committers-globalis"],"banners":{"banner":"https:\/\/ps.w.org\/prepare-new-version\/assets\/banner-772x250.jpg?rev=778231","banner_2x":"https:\/\/ps.w.org\/prepare-new-version\/assets\/banner-1544x500.jpg?rev=778231","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/prepare-new-version\/assets\/icon-128x128.png?rev=985303","icon_2x":"https:\/\/ps.w.org\/prepare-new-version\/assets\/icon-256x256.png?rev=985303","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-1.png?rev=778231","caption":"<strong>New handy box in editing view<\/strong> - When creating\/editing a post or a page, users get access to a new box to prepare a new version or create a copy of the document with only <strong>one click<\/strong> !"},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-2.png?rev=778231","caption":"And when you're ready to update the current online article, it will just take you one more click. Easy as a pie!"},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-3.png?rev=778231","caption":"Create a new post as usual. When you\u2019re done,  you can of course publish it (A) or directly create a new version (B), or even create a copy (C). If you directly create a new version or a copy, the post is saved as a draft."},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-4.png?rev=778231","caption":"After you prepared a new version, the \u201cPending versions\u201d block now looks like the picture below (D). To access the pending versions list, you first need to edit the original post, or one of its pending versions."},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-5.png?rev=778231","caption":"Once you clicked on a pending version of a post, you can edit it as a normal one. Inside the \u201cPublish\u201d block, hit the save button (E) to save the pending version you\u2019re working on, or the preview button (F). To delete the pending version, click on the link \u201cMove to trash\u201d (H). If you want to replace the current version of the original post with the pending version click on the button \u201cUpdate original\u201d (G). You can also directly move to another pending version by clicking the link (I), create another new version (J) or create a complete new post (K) based on the current pending version."},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-6.png?rev=778231","caption":"<strong>Preparing a new version<\/strong> - A copy of the article is created. \"[New version]\" is automatically prepended to its title and a link to the original article is available at the top of the editing form. The created post is completely independent of the original. It is in a Draft status and \"[Copy]\" is automatically prepended to its title."},{"src":"https:\/\/ps.w.org\/prepare-new-version\/assets\/screenshot-7.png?rev=778231","caption":"In the Posts list, a new column \u201cPending version\u201d appears in last position."}],"raw_content":"<!--section=description-->\n<p>Sometimes happiness is about small things. What about being able to prepare a new version of your content while its original is still online?<\/p>\n\n<p>Anticipating and preparing the next version of an article which is already online can quickly become a tedious and risky task. Indeed, most publishers will create a brand new post, fill it in, publish it once it's ready and finally disable the original article.<\/p>\n\n<h4>Basic features:<\/h4>\n\n<ul>\n<li>creation of a new version of an article in 1 click;<\/li>\n<li>direct access to other pending versions of an article;<\/li>\n<li>update of an article to its new version in 1 click.<\/li>\n<\/ul>\n\n<h4>Advanced features:<\/h4>\n\n<ul>\n<li>duplication of an article into a brand new independent copy;<\/li>\n<li>hookable ;-) <\/li>\n<li>works with any post types, custom or not<\/li>\n<li>makes coffee (we\u2019re still working on that)<\/li>\n<\/ul>\n\n<h3>About<\/h3>\n\n<h4>Hooks<\/h4>\n\n<p><strong>pnv_duplicata_status_args<\/strong>\nFilter that can be used to alter arguments sent to 'register_post_status'.\nDefault arguments are:<\/p>\n\n<ul>\n<li><p>label =&gt; Duplicate<\/p><\/li>\n<li><p>public =&gt; false<\/p><\/li>\n<li><p>exclude_from_search =&gt; true<\/p><\/li>\n<li><p>show_in_admin_all_list =&gt; false<\/p><\/li>\n<li><p>label_count =&gt;<\/p><\/li>\n<li><ul>\n<li>singular =&gt; Duplicate (%s)<\/li>\n<\/ul><\/li>\n<li><ul>\n<li>plural =&gt; Duplicates (%s)<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><strong>pnv_erase_content_destination<\/strong>\nFilter that can be used to alter $destination array before 'wp_insert_post' get called when a copy, duplication or replacement is triggered\nThis filter sends 3 other parameters: the $source object (WP_Post instance) and the $copy boolean<\/p>\n\n<p><strong>pnv_filtered_metas<\/strong>\nFilter that can be used to alter meta names that must not be treated while a post is copied, duplicated or replaced\nThe default metas is an array with these values:<\/p>\n\n<ul>\n<li>_pnv_duplicata =&gt; true<\/li>\n<\/ul>\n\n<p><strong>pnv_erase_content<\/strong>\nAction triggered at the end of a copy, duplication or replacement.\nThis action sends 4 parameters:<\/p>\n\n<ul>\n<li><p>the $source object (WP_Post instance)<\/p><\/li>\n<li><p>the $destination array (represents post data)<\/p><\/li>\n<li><p>the $copy boolean<\/p><\/li>\n<li><p>the destination's post ID<\/p><\/li>\n<\/ul>\n\n<p><strong>pnv_action_url_redirect<\/strong>\nFilter that can be used to alter redirect URL after a copy, duplication or replacement.\nThe default value is the admin edit page for the destination post (the one that has been saved)\nThis filter sends 1 other parameter: the destination post ID\npnv_{column_name}_column_value\nFilter that can be used to alter the value displayed on the posts list, in the '{column_name}' column.\nThis plugin comes with only one custom column for now, 'duplicata', so {column_name} will always be 'duplicata', and the default value will be the count of duplicates for the post.\nThis filter sends 1 other parameter: the post ID<\/p>\n\n<h4>Thank\u2019s<\/h4>\n\n<p>The original version of this plugin has been developed by Lionel POINTET (https:\/\/github.com\/lpointet) who keeps following the project carefully.<\/p>\n\n<p>A big thank-you to <a href=\"http:\/\/www.groupemoniteur.fr\/\">Groupe Moniteur<\/a> for which a great part of this development was intended and which accepted enthusiastically to do a completely open source plugin from it. Thank you to <a href=\"http:\/\/uncategorized-creations.com\/\">Uncategorized Creations<\/a> people, for their regular advice and their perseverance in making WordPress a leading CMS.<\/p>\n\n<h4>GLOBALIS<\/h4>\n\n<p><a href=\"http:\/\/www.globalis-ms.com\/\">GLOBALIS<\/a> is a web IT consulting company based in Paris, and a pioneer of the PHP and LAMP platform. Since 1997, we have been designing, making and maintaining Internet, intranet or mobile software. We have been working with open source CMS since 2000 and have regularly been using WordPress since 2007.<\/p>\n\n<!--section=installation-->\n<p>You can install Prepare New Version using the built in WordPress plugin installer. It\u2019s easy, 2 seconds.<\/p>\n\n<p>If you prefer download Prepare New Version manually :<\/p>\n\n<ol>\n<li>Upload prepare-new-version (URL) to the \/wp-content\/plugins\/ directory.<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress.<\/li>\n<li>A new \u201cPending versions\u201d box is now available when creating\/editing a post\/page.<\/li>\n<li>That's it. You're ready to go!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is the plugin compatible with WordPress 3.9 ?<\/dt>\n<dd><p>Yes ! ;-)<\/p><\/dd>\n<dt>Is the plugin compatible with WordPress 3.8 ?<\/dt>\n<dd><p>Yes ! ;-)<\/p><\/dd>\n<dt>Which languages are currently supported?<\/dt>\n<dd><p>As of now, Prepare New Version is available in English and in French. If you wish to, you can translate the interface in your own language in the [standard WordPress way] http:\/\/codex.wordpress.org\/Translating_WordPress<\/p><\/dd>\n<dt>Do the duplicated posts appear on the front side of my site?<\/dt>\n<dd><p>No, they won't appear on front since they are meant to be 'draft' versions of contents. \nOnly copies will appear since they are real copies and create a real post.<\/p><\/dd>\n<dt>Is the plugin compatible with all the post types, even the ones I created?<\/dt>\n<dd><p>Yes. The plugin manages all built-in and custom post types.<\/p><\/dd>\n<dt>GLOBALIS what ?<\/dt>\n<dd><p><a href=\"http:\/\/www.globalis-ms.com\/\">GLOBALIS<\/a> is a web IT consulting company based in Paris, and a pioneer of the PHP and LAMP platform. Since 1997, we have been designing, making and maintaining Internet, intranet or mobile software. We have been working with open source CMS since 2000 and have regularly been using WordPress since 2007.<\/p><\/dd>\n<dt>Why should I use Prepare New Versions?<\/dt>\n<dd><p>Prepare New Version makes your life easier by letting you focus on your primary activity: Writing. You don\u2019t need to handle permalinks, content replacement, or things that would usually be tedious and maybe not without risk. With Prepare New Versions, all of these are being taken care of!<\/p><\/dd>\n<dt>How do I create a new version of a post?<\/dt>\n<dd><p>New versions are created from the post editing screen. It can be either an existing post or a pending version of one.<\/p><\/dd>\n<dt>When I duplicate a post, what\u2019s the status of the newly created copy?<\/dt>\n<dd><p>New posts which are copied from existing posts are automatically created with a Draft status. They are independent of the original post and can be published whenever you like.<\/p><\/dd>\n<dt>How can I quickly see how many pending versions have been created for each post?<\/dt>\n<dd><p>When you activate the Prepare New Versions plugin, a new column \u201cPending versions\u201d appears in last position, in the Posts list. You can then access these versions by editing the original post and scrolling to the \u201cPending versions\u201d box.<\/p><\/dd>\n<dt>When I prepare a new version, the permalink differs from the original post\u2019s. What\u2019s going to happen when I update the original post?<\/dt>\n<dd><p>When you click the \u201cUpdate original\u201d button, the permalink is not going to be altered, and will remain the same. This means it won\u2019t change anything for your blog visitors, except for the updated content.<\/p><\/dd>\n<dt>How can I remove pending versions I don\u2019t use anymore?<\/dt>\n<dd><p>When you update an original post, previous pending versions are not deleted and will remain available. However, you have 2 ways to remove them:\n* go to the pending version editing screen and click \u201cMove to trash\u201d in the \u201cPublish\u201d box:\n* go the the Posts list and click the \u201cPending versions\u201d link.You will now access a list of all pending versions and will be able to remove one or several at a time.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>bugfixes<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Code refactoring and cleaning<\/li>\n<li>Update readme for pnv_erase_content_destination filter<\/li>\n<li>Security fix: create a nonce for each action and include post ID in it \/ props Julio Potier<\/li>\n<li>Security fix: check user rights on the post before doing anything with it \/ props Julio Potier<\/li>\n<li>Update permalink for 'duplicata' status posts and always return a shortlink: useful for preview feature \/ props Julio Potier<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<p>initial public version released<\/p>","raw_excerpt":"Create the next version of your post while preserving its already online version.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25388"}],"author":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/globalis"}],"wp:attachment":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25388"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25388"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25388"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25388"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25388"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}