Duplicate Post - Version 2.0.1

Version Description

Bug fix + new option

Download this release

Release Info

Developer lopo
Plugin Icon 128x128 Duplicate Post
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0 to 2.0.1

duplicate-post-admin.php CHANGED
@@ -6,7 +6,7 @@ return;
6
  require_once (dirname(__FILE__).'/duplicate-post-options.php');
7
 
8
  // Version of the plugin
9
- define('DUPLICATE_POST_CURRENT_VERSION', '2.0' );
10
 
11
  /**
12
  * Wrapper for the option 'duplicate_post_version'
@@ -47,6 +47,10 @@ function duplicate_post_plugin_activation() {
47
  '1',
48
  'Copy the excerpt from the original post/page' );
49
  add_option(
 
 
 
 
50
  'duplicate_post_taxonomies_blacklist',
51
  array(),
52
  'List of the taxonomies that mustn\'t be copied' );
@@ -231,6 +235,7 @@ function duplicate_post_create_duplicate($post, $status = '') {
231
  else
232
  $post_excerpt = "";
233
  $post_title = $prefix.str_replace("'", "''", $post->post_title).$suffix;
 
234
  if (empty($status))
235
  $new_post_status = str_replace("'", "''", $post->post_status);
236
  else
@@ -248,16 +253,6 @@ function duplicate_post_create_duplicate($post, $status = '') {
248
 
249
  $new_post_id = $wpdb->insert_id;
250
 
251
- $post_name = wp_unique_post_slug($post_name, $new_post_id, $new_post_status, $new_post_type, $post->post_parent);
252
- // Update post 37
253
- $new_post = array();
254
- $new_post['ID'] = $new_post_id;
255
- $new_post['post_name'] = $post_name;
256
-
257
- // Update the post into the database
258
- wp_update_post( $new_post );
259
-
260
-
261
  // Copy the taxonomies
262
  duplicate_post_copy_post_taxonomies($post->ID, $new_post_id, $post->post_type);
263
 
@@ -268,10 +263,19 @@ function duplicate_post_create_duplicate($post, $status = '') {
268
 
269
  // If you have written a plugin which uses non-WP database tables to save
270
  // information about a post you can hook this action to dupe that data.
271
- if ($post->post_type == 'page' || (function_exists(is_post_type_hierarchical) && is_post_type_hierarchical( $post->post_type )))
272
- do_action( 'dp_duplicate_page', $new_id, $post );
273
  else
274
- do_action( 'dp_duplicate_post', $new_id, $post );
 
 
 
 
 
 
 
 
 
275
 
276
  return $new_post_id;
277
  }
6
  require_once (dirname(__FILE__).'/duplicate-post-options.php');
7
 
8
  // Version of the plugin
9
+ define('DUPLICATE_POST_CURRENT_VERSION', '2.0.1' );
10
 
11
  /**
12
  * Wrapper for the option 'duplicate_post_version'
47
  '1',
48
  'Copy the excerpt from the original post/page' );
49
  add_option(
50
+ 'duplicate_post_copystatus',
51
+ '0',
52
+ 'Copy the status (draft, published, pending) from the original post/page' );
53
+ add_option(
54
  'duplicate_post_taxonomies_blacklist',
55
  array(),
56
  'List of the taxonomies that mustn\'t be copied' );
235
  else
236
  $post_excerpt = "";
237
  $post_title = $prefix.str_replace("'", "''", $post->post_title).$suffix;
238
+ if (get_option('duplicate_post_copystatus') == 0) $status = 'draft';
239
  if (empty($status))
240
  $new_post_status = str_replace("'", "''", $post->post_status);
241
  else
253
 
254
  $new_post_id = $wpdb->insert_id;
255
 
 
 
 
 
 
 
 
 
 
 
256
  // Copy the taxonomies
257
  duplicate_post_copy_post_taxonomies($post->ID, $new_post_id, $post->post_type);
258
 
263
 
264
  // If you have written a plugin which uses non-WP database tables to save
265
  // information about a post you can hook this action to dupe that data.
266
+ if ($post->post_type == 'page' || (function_exists('is_post_type_hierarchical') && is_post_type_hierarchical( $post->post_type )))
267
+ do_action( 'dp_duplicate_page', $new_post_id, $post );
268
  else
269
+ do_action( 'dp_duplicate_post', $new_post_id, $post );
270
+
271
+ $post_name = wp_unique_post_slug($post_name, $new_post_id, $new_post_status, $new_post_type, $post->post_parent);
272
+
273
+ $new_post = array();
274
+ $new_post['ID'] = $new_post_id;
275
+ $new_post['post_name'] = $post_name;
276
+
277
+ // Update the post into the database
278
+ wp_update_post( $new_post );
279
 
280
  return $new_post_id;
281
  }
duplicate-post-options.php CHANGED
@@ -10,6 +10,7 @@ if ( is_admin() ){ // admin actions
10
  function duplicate_post_register_settings() { // whitelist options
11
  register_setting( 'duplicate_post_group', 'duplicate_post_copydate');
12
  register_setting( 'duplicate_post_group', 'duplicate_post_copyexcerpt');
 
13
  register_setting( 'duplicate_post_group', 'duplicate_post_blacklist');
14
  register_setting( 'duplicate_post_group', 'duplicate_post_taxonomies_blacklist');
15
  register_setting( 'duplicate_post_group', 'duplicate_post_title_prefix');
@@ -42,6 +43,14 @@ function duplicate_post_options() {
42
  </span>
43
  </td>
44
  </tr>
 
 
 
 
 
 
 
 
45
  <tr valign="top">
46
  <th scope="row"><?php _e("Copy excerpt", DUPLICATE_POST_I18N_DOMAIN); ?>
47
  </th>
10
  function duplicate_post_register_settings() { // whitelist options
11
  register_setting( 'duplicate_post_group', 'duplicate_post_copydate');
12
  register_setting( 'duplicate_post_group', 'duplicate_post_copyexcerpt');
13
+ register_setting( 'duplicate_post_group', 'duplicate_post_copystatus');
14
  register_setting( 'duplicate_post_group', 'duplicate_post_blacklist');
15
  register_setting( 'duplicate_post_group', 'duplicate_post_taxonomies_blacklist');
16
  register_setting( 'duplicate_post_group', 'duplicate_post_title_prefix');
43
  </span>
44
  </td>
45
  </tr>
46
+ <tr valign="top">
47
+ <th scope="row"><?php _e("Copy post/page status", DUPLICATE_POST_I18N_DOMAIN); ?>
48
+ </th>
49
+ <td><input type="checkbox" name="duplicate_post_copystatus" value="1" <?php if(get_option('duplicate_post_copystatus') == 1) echo 'checked="checked"'; ?>"/>
50
+ <span class="description"><?php _e("Copy the original post status (draft, published, pending) when cloning from the post list. Cloning from the edit screen will always create a new draft.", DUPLICATE_POST_I18N_DOMAIN); ?>
51
+ </span>
52
+ </td>
53
+ </tr>
54
  <tr valign="top">
55
  <th scope="row"><?php _e("Copy excerpt", DUPLICATE_POST_I18N_DOMAIN); ?>
56
  </th>
duplicate-post.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Duplicate Post
4
  Plugin URI: http://lopo.it/duplicate-post-plugin/
5
  Description: Creates a copy of a post.
6
- Version: 2.0
7
  Author: Enrico Battocchi
8
  Author URI: http://lopo.it
9
  Text Domain: duplicate-post
3
  Plugin Name: Duplicate Post
4
  Plugin URI: http://lopo.it/duplicate-post-plugin/
5
  Description: Creates a copy of a post.
6
+ Version: 2.0.1
7
  Author: Enrico Battocchi
8
  Author URI: http://lopo.it
9
  Text Domain: duplicate-post
languages/duplicate-post-it_IT.mo CHANGED
Binary file
languages/duplicate-post-it_IT.po CHANGED
@@ -6,114 +6,123 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: duplicate-post\n"
9
- "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10
- "POT-Creation-Date: 2011-11-11 13:14+0000\n"
11
- "PO-Revision-Date: 2011-11-11 14:49+0100\n"
12
  "Last-Translator: Enrico Battocchi <enrico.battocchi@gmail.com>\n"
13
  "Language-Team: Italian <it@li.org>\n"
 
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Launchpad-Export-Date: 2011-11-11 13:48+0000\n"
18
  "X-Generator: Launchpad (build 14277)\n"
19
 
20
- #: duplicate-post-admin.php:78
21
  #: duplicate-post-common.php:67
22
  msgid "Clone this item"
23
  msgstr "Clona questo elemento"
24
 
25
- #: duplicate-post-admin.php:79
26
  msgid "Duplicate"
27
  msgstr "Duplica"
28
 
29
- #: duplicate-post-admin.php:97
30
  msgid "Copy to a new draft"
31
  msgstr "Copia in una nuova bozza"
32
 
33
- #: duplicate-post-admin.php:124
34
  msgid "No post to duplicate has been supplied!"
35
  msgstr "Non è stato fornito alcun articolo da copiare!"
36
 
37
- #: duplicate-post-admin.php:146
38
  msgid "Copy creation failed, could not find original:"
39
  msgstr "Creazione della copia fallita, impossibile trovare l'originale:"
40
 
41
- #: duplicate-post-admin.php:293
42
  msgid "Donate"
43
  msgstr "Invia una donazione"
44
 
45
- #: duplicate-post-admin.php:294
46
  msgid "Translate"
47
  msgstr "Traduci"
48
 
49
- #: duplicate-post-options.php:22
50
  msgid "Duplicate Post Options"
51
  msgstr "Opzioni di Duplicate Post"
52
 
53
  #. #-#-#-#-# plugin.pot (Duplicate Post 2.0) #-#-#-#-#
54
  #. Plugin Name of the plugin/theme
55
- #: duplicate-post-options.php:22
56
- #: duplicate-post-options.php:29
57
  msgid "Duplicate Post"
58
  msgstr "Duplicate Post"
59
 
60
- #: duplicate-post-options.php:38
61
  msgid "Copy post/page date also"
62
  msgstr "Copia anche la data dell'articolo o pagina"
63
 
64
- #: duplicate-post-options.php:41
65
  msgid "Normally, the new draft has publication date set to current time: check the box to copy the original post/page date"
66
  msgstr "Normalmente, la nuova bozza ha la data di pubblicazione impostata all'istante corrente: spunta la casella per copiare la data dell'articolo/pagina originale"
67
 
68
- #: duplicate-post-options.php:46
 
 
 
 
 
 
 
 
69
  msgid "Copy excerpt"
70
  msgstr "Copia il riassunto"
71
 
72
- #: duplicate-post-options.php:50
73
  msgid "Copy the excerpt from the original post/page"
74
  msgstr "Copia il riassunto dall'articolo o pagina originale"
75
 
76
- #: duplicate-post-options.php:55
77
  msgid "Do not copy these fields"
78
  msgstr "Non copiare questi campi"
79
 
80
- #: duplicate-post-options.php:59
81
  msgid "Comma-separated list of meta fields that must not be copied when cloning a post/page"
82
  msgstr "Lista separata da virgole di campi personalizzati da non copiare quando viene clonato un post o una pagina"
83
 
84
- #: duplicate-post-options.php:64
85
  msgid "Do not copy these taxonomies"
86
  msgstr "Non copiare queste tassonomie"
87
 
88
- #: duplicate-post-options.php:78
89
  msgid "Select the taxonomies you don't want to be copied"
90
  msgstr "Seleziona le tassonomie che non vuoi copiare"
91
 
92
- #: duplicate-post-options.php:83
93
  msgid "Title prefix"
94
  msgstr "Prefisso del titolo"
95
 
96
- #: duplicate-post-options.php:87
97
  msgid "Prefix to be added before the original title when cloning a post/page, e.g. \"Copy of\" (blank for no prefix)"
98
  msgstr "Prefisso da aggiungere prima del titolo originale quando si clona un post o una pagina, es. \"Copia di\" (lasciare vuoto per nessun prefisso)"
99
 
100
- #: duplicate-post-options.php:92
101
  msgid "Title suffix"
102
  msgstr "Suffisso del titolo"
103
 
104
- #: duplicate-post-options.php:96
105
  msgid "Suffix to be added after the original title when cloning a post/page, e.g. \"(dup)\" (blank for no suffix)"
106
  msgstr "Suffisso da aggiungere prima del titolo originale quando si clona un post o una pagina, es. \"(copia)\" (lasciare vuoto per nessun suffisso)"
107
 
108
- #: duplicate-post-options.php:101
109
  msgid "Minimum level to copy posts"
110
  msgstr "Livello minimo per copiare gli articoli"
111
 
112
- #: duplicate-post-options.php:120
113
  msgid "Warning: users will be able to copy all posts, even those of higher level users"
114
  msgstr "Attenzione: gli utenti potranno copiare tutti gli articoli, anche quelli degli utenti di livello superiore"
115
 
116
- #: duplicate-post-options.php:129
117
  msgid "Save Changes"
118
  msgstr "Salva le modifiche"
119
 
@@ -121,10 +130,22 @@ msgstr "Salva le modifiche"
121
  msgid "Clone"
122
  msgstr "Clona"
123
 
 
 
 
 
124
  #. Description of the plugin/theme
125
  msgid "Creates a copy of a post."
126
  msgstr "Crea una copia di un articolo."
127
 
 
 
 
 
 
 
 
 
128
  #~ msgid "No page to duplicate has been supplied!"
129
  #~ msgstr "Non è stata fornita alcuna pagina da copiare!"
130
 
@@ -138,12 +159,3 @@ msgstr "Crea una copia di un articolo."
138
  #~ msgstr ""
139
  #~ "Creazione dell'articolo fallita, non è stato possibile trovare l'articolo "
140
  #~ "originale:"
141
-
142
- #~ msgid "Enrico Battocchi"
143
- #~ msgstr "Enrico Battocchi"
144
-
145
- #~ msgid "http://www.lopo.it"
146
- #~ msgstr "http://www.lopo.it"
147
-
148
- #~ msgid "http://www.lopo.it/duplicate-post-plugin/"
149
- #~ msgstr "http://www.lopo.it/duplicate-post-plugin/"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: duplicate-post\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/duplicate-post\n"
10
+ "POT-Creation-Date: 2011-12-08 14:06:45+00:00\n"
11
+ "PO-Revision-Date: 2011-12-08 15:12+0100\n"
12
  "Last-Translator: Enrico Battocchi <enrico.battocchi@gmail.com>\n"
13
  "Language-Team: Italian <it@li.org>\n"
14
+ "Language: it\n"
15
  "MIME-Version: 1.0\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Launchpad-Export-Date: 2011-11-11 13:48+0000\n"
19
  "X-Generator: Launchpad (build 14277)\n"
20
 
21
+ #: duplicate-post-admin.php:73
22
  #: duplicate-post-common.php:67
23
  msgid "Clone this item"
24
  msgstr "Clona questo elemento"
25
 
26
+ #: duplicate-post-admin.php:74
27
  msgid "Duplicate"
28
  msgstr "Duplica"
29
 
30
+ #: duplicate-post-admin.php:92
31
  msgid "Copy to a new draft"
32
  msgstr "Copia in una nuova bozza"
33
 
34
+ #: duplicate-post-admin.php:119
35
  msgid "No post to duplicate has been supplied!"
36
  msgstr "Non è stato fornito alcun articolo da copiare!"
37
 
38
+ #: duplicate-post-admin.php:141
39
  msgid "Copy creation failed, could not find original:"
40
  msgstr "Creazione della copia fallita, impossibile trovare l'originale:"
41
 
42
+ #: duplicate-post-admin.php:289
43
  msgid "Donate"
44
  msgstr "Invia una donazione"
45
 
46
+ #: duplicate-post-admin.php:290
47
  msgid "Translate"
48
  msgstr "Traduci"
49
 
50
+ #: duplicate-post-options.php:23
51
  msgid "Duplicate Post Options"
52
  msgstr "Opzioni di Duplicate Post"
53
 
54
  #. #-#-#-#-# plugin.pot (Duplicate Post 2.0) #-#-#-#-#
55
  #. Plugin Name of the plugin/theme
56
+ #: duplicate-post-options.php:23
57
+ #: duplicate-post-options.php:30
58
  msgid "Duplicate Post"
59
  msgstr "Duplicate Post"
60
 
61
+ #: duplicate-post-options.php:39
62
  msgid "Copy post/page date also"
63
  msgstr "Copia anche la data dell'articolo o pagina"
64
 
65
+ #: duplicate-post-options.php:42
66
  msgid "Normally, the new draft has publication date set to current time: check the box to copy the original post/page date"
67
  msgstr "Normalmente, la nuova bozza ha la data di pubblicazione impostata all'istante corrente: spunta la casella per copiare la data dell'articolo/pagina originale"
68
 
69
+ #: duplicate-post-options.php:47
70
+ msgid "Copy post/page status"
71
+ msgstr "Copia anche lo stato dell'articolo o della pagina"
72
+
73
+ #: duplicate-post-options.php:50
74
+ msgid "Copy the original post status (draft, published, pending) when cloning from the post list. Cloning from the edit screen will always create a new draft."
75
+ msgstr "Copia lo stato dell'articolo originale (bozza, pubblicato, in sospeso) quando si clona dalla lista degli articoli. La duplicazione dalla schermata di modifica crerà sempre una nuova bozza."
76
+
77
+ #: duplicate-post-options.php:55
78
  msgid "Copy excerpt"
79
  msgstr "Copia il riassunto"
80
 
81
+ #: duplicate-post-options.php:59
82
  msgid "Copy the excerpt from the original post/page"
83
  msgstr "Copia il riassunto dall'articolo o pagina originale"
84
 
85
+ #: duplicate-post-options.php:64
86
  msgid "Do not copy these fields"
87
  msgstr "Non copiare questi campi"
88
 
89
+ #: duplicate-post-options.php:68
90
  msgid "Comma-separated list of meta fields that must not be copied when cloning a post/page"
91
  msgstr "Lista separata da virgole di campi personalizzati da non copiare quando viene clonato un post o una pagina"
92
 
93
+ #: duplicate-post-options.php:73
94
  msgid "Do not copy these taxonomies"
95
  msgstr "Non copiare queste tassonomie"
96
 
97
+ #: duplicate-post-options.php:87
98
  msgid "Select the taxonomies you don't want to be copied"
99
  msgstr "Seleziona le tassonomie che non vuoi copiare"
100
 
101
+ #: duplicate-post-options.php:92
102
  msgid "Title prefix"
103
  msgstr "Prefisso del titolo"
104
 
105
+ #: duplicate-post-options.php:96
106
  msgid "Prefix to be added before the original title when cloning a post/page, e.g. \"Copy of\" (blank for no prefix)"
107
  msgstr "Prefisso da aggiungere prima del titolo originale quando si clona un post o una pagina, es. \"Copia di\" (lasciare vuoto per nessun prefisso)"
108
 
109
+ #: duplicate-post-options.php:101
110
  msgid "Title suffix"
111
  msgstr "Suffisso del titolo"
112
 
113
+ #: duplicate-post-options.php:105
114
  msgid "Suffix to be added after the original title when cloning a post/page, e.g. \"(dup)\" (blank for no suffix)"
115
  msgstr "Suffisso da aggiungere prima del titolo originale quando si clona un post o una pagina, es. \"(copia)\" (lasciare vuoto per nessun suffisso)"
116
 
117
+ #: duplicate-post-options.php:110
118
  msgid "Minimum level to copy posts"
119
  msgstr "Livello minimo per copiare gli articoli"
120
 
121
+ #: duplicate-post-options.php:129
122
  msgid "Warning: users will be able to copy all posts, even those of higher level users"
123
  msgstr "Attenzione: gli utenti potranno copiare tutti gli articoli, anche quelli degli utenti di livello superiore"
124
 
125
+ #: duplicate-post-options.php:138
126
  msgid "Save Changes"
127
  msgstr "Salva le modifiche"
128
 
130
  msgid "Clone"
131
  msgstr "Clona"
132
 
133
+ #. Plugin URI of the plugin/theme
134
+ msgid "http://lopo.it/duplicate-post-plugin/"
135
+ msgstr "http://lopo.it/duplicate-post-plugin/"
136
+
137
  #. Description of the plugin/theme
138
  msgid "Creates a copy of a post."
139
  msgstr "Crea una copia di un articolo."
140
 
141
+ #. Author of the plugin/theme
142
+ msgid "Enrico Battocchi"
143
+ msgstr "Enrico Battocchi"
144
+
145
+ #. Author URI of the plugin/theme
146
+ msgid "http://lopo.it"
147
+ msgstr "http://lopo.it"
148
+
149
  #~ msgid "No page to duplicate has been supplied!"
150
  #~ msgstr "Non è stata fornita alcuna pagina da copiare!"
151
 
159
  #~ msgstr ""
160
  #~ "Creazione dell'articolo fallita, non è stato possibile trovare l'articolo "
161
  #~ "originale:"
 
 
 
 
 
 
 
 
 
languages/duplicate-post.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Duplicate Post 2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/duplicate-post\n"
7
- "POT-Creation-Date: 2011-11-11 13:14:50+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,111 +12,121 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: duplicate-post-admin.php:78 duplicate-post-common.php:67
16
  msgid "Clone this item"
17
  msgstr ""
18
 
19
- #: duplicate-post-admin.php:79
20
  msgid "Duplicate"
21
  msgstr ""
22
 
23
- #: duplicate-post-admin.php:97
24
  msgid "Copy to a new draft"
25
  msgstr ""
26
 
27
- #: duplicate-post-admin.php:124
28
  msgid "No post to duplicate has been supplied!"
29
  msgstr ""
30
 
31
- #: duplicate-post-admin.php:146
32
  msgid "Copy creation failed, could not find original:"
33
  msgstr ""
34
 
35
- #: duplicate-post-admin.php:293
36
  msgid "Donate"
37
  msgstr ""
38
 
39
- #: duplicate-post-admin.php:294
40
  msgid "Translate"
41
  msgstr ""
42
 
43
- #: duplicate-post-options.php:22
44
  msgid "Duplicate Post Options"
45
  msgstr ""
46
 
47
  #. #-#-#-#-# plugin.pot (Duplicate Post 2.0) #-#-#-#-#
48
  #. Plugin Name of the plugin/theme
49
- #: duplicate-post-options.php:22 duplicate-post-options.php:29
50
  msgid "Duplicate Post"
51
  msgstr ""
52
 
53
- #: duplicate-post-options.php:38
54
  msgid "Copy post/page date also"
55
  msgstr ""
56
 
57
- #: duplicate-post-options.php:41
58
  msgid ""
59
  "Normally, the new draft has publication date set to current time: check the "
60
  "box to copy the original post/page date"
61
  msgstr ""
62
 
63
- #: duplicate-post-options.php:46
64
- msgid "Copy excerpt"
65
  msgstr ""
66
 
67
  #: duplicate-post-options.php:50
68
- msgid "Copy the excerpt from the original post/page"
 
 
69
  msgstr ""
70
 
71
  #: duplicate-post-options.php:55
72
- msgid "Do not copy these fields"
73
  msgstr ""
74
 
75
  #: duplicate-post-options.php:59
 
 
 
 
 
 
 
 
76
  msgid ""
77
  "Comma-separated list of meta fields that must not be copied when cloning a "
78
  "post/page"
79
  msgstr ""
80
 
81
- #: duplicate-post-options.php:64
82
  msgid "Do not copy these taxonomies"
83
  msgstr ""
84
 
85
- #: duplicate-post-options.php:78
86
  msgid "Select the taxonomies you don't want to be copied"
87
  msgstr ""
88
 
89
- #: duplicate-post-options.php:83
90
  msgid "Title prefix"
91
  msgstr ""
92
 
93
- #: duplicate-post-options.php:87
94
  msgid ""
95
  "Prefix to be added before the original title when cloning a post/page, e.g. "
96
  "\"Copy of\" (blank for no prefix)"
97
  msgstr ""
98
 
99
- #: duplicate-post-options.php:92
100
  msgid "Title suffix"
101
  msgstr ""
102
 
103
- #: duplicate-post-options.php:96
104
  msgid ""
105
  "Suffix to be added after the original title when cloning a post/page, e.g. "
106
  "\"(dup)\" (blank for no suffix)"
107
  msgstr ""
108
 
109
- #: duplicate-post-options.php:101
110
  msgid "Minimum level to copy posts"
111
  msgstr ""
112
 
113
- #: duplicate-post-options.php:120
114
  msgid ""
115
  "Warning: users will be able to copy all posts, even those of higher level "
116
  "users"
117
  msgstr ""
118
 
119
- #: duplicate-post-options.php:129
120
  msgid "Save Changes"
121
  msgstr ""
122
 
@@ -124,8 +134,18 @@ msgstr ""
124
  msgid "Clone"
125
  msgstr ""
126
 
 
 
 
 
127
  #. Description of the plugin/theme
128
  msgid "Creates a copy of a post."
129
  msgstr ""
130
 
 
 
 
131
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: Duplicate Post 2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/duplicate-post\n"
7
+ "POT-Creation-Date: 2011-12-08 14:06:45+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: duplicate-post-admin.php:73 duplicate-post-common.php:67
16
  msgid "Clone this item"
17
  msgstr ""
18
 
19
+ #: duplicate-post-admin.php:74
20
  msgid "Duplicate"
21
  msgstr ""
22
 
23
+ #: duplicate-post-admin.php:92
24
  msgid "Copy to a new draft"
25
  msgstr ""
26
 
27
+ #: duplicate-post-admin.php:119
28
  msgid "No post to duplicate has been supplied!"
29
  msgstr ""
30
 
31
+ #: duplicate-post-admin.php:141
32
  msgid "Copy creation failed, could not find original:"
33
  msgstr ""
34
 
35
+ #: duplicate-post-admin.php:289
36
  msgid "Donate"
37
  msgstr ""
38
 
39
+ #: duplicate-post-admin.php:290
40
  msgid "Translate"
41
  msgstr ""
42
 
43
+ #: duplicate-post-options.php:23
44
  msgid "Duplicate Post Options"
45
  msgstr ""
46
 
47
  #. #-#-#-#-# plugin.pot (Duplicate Post 2.0) #-#-#-#-#
48
  #. Plugin Name of the plugin/theme
49
+ #: duplicate-post-options.php:23 duplicate-post-options.php:30
50
  msgid "Duplicate Post"
51
  msgstr ""
52
 
53
+ #: duplicate-post-options.php:39
54
  msgid "Copy post/page date also"
55
  msgstr ""
56
 
57
+ #: duplicate-post-options.php:42
58
  msgid ""
59
  "Normally, the new draft has publication date set to current time: check the "
60
  "box to copy the original post/page date"
61
  msgstr ""
62
 
63
+ #: duplicate-post-options.php:47
64
+ msgid "Copy post/page status"
65
  msgstr ""
66
 
67
  #: duplicate-post-options.php:50
68
+ msgid ""
69
+ "Copy the original post status (draft, published, pending) when cloning from "
70
+ "the post list. Cloning from the edit screen will always create a new draft."
71
  msgstr ""
72
 
73
  #: duplicate-post-options.php:55
74
+ msgid "Copy excerpt"
75
  msgstr ""
76
 
77
  #: duplicate-post-options.php:59
78
+ msgid "Copy the excerpt from the original post/page"
79
+ msgstr ""
80
+
81
+ #: duplicate-post-options.php:64
82
+ msgid "Do not copy these fields"
83
+ msgstr ""
84
+
85
+ #: duplicate-post-options.php:68
86
  msgid ""
87
  "Comma-separated list of meta fields that must not be copied when cloning a "
88
  "post/page"
89
  msgstr ""
90
 
91
+ #: duplicate-post-options.php:73
92
  msgid "Do not copy these taxonomies"
93
  msgstr ""
94
 
95
+ #: duplicate-post-options.php:87
96
  msgid "Select the taxonomies you don't want to be copied"
97
  msgstr ""
98
 
99
+ #: duplicate-post-options.php:92
100
  msgid "Title prefix"
101
  msgstr ""
102
 
103
+ #: duplicate-post-options.php:96
104
  msgid ""
105
  "Prefix to be added before the original title when cloning a post/page, e.g. "
106
  "\"Copy of\" (blank for no prefix)"
107
  msgstr ""
108
 
109
+ #: duplicate-post-options.php:101
110
  msgid "Title suffix"
111
  msgstr ""
112
 
113
+ #: duplicate-post-options.php:105
114
  msgid ""
115
  "Suffix to be added after the original title when cloning a post/page, e.g. "
116
  "\"(dup)\" (blank for no suffix)"
117
  msgstr ""
118
 
119
+ #: duplicate-post-options.php:110
120
  msgid "Minimum level to copy posts"
121
  msgstr ""
122
 
123
+ #: duplicate-post-options.php:129
124
  msgid ""
125
  "Warning: users will be able to copy all posts, even those of higher level "
126
  "users"
127
  msgstr ""
128
 
129
+ #: duplicate-post-options.php:138
130
  msgid "Save Changes"
131
  msgstr ""
132
 
134
  msgid "Clone"
135
  msgstr ""
136
 
137
+ #. Plugin URI of the plugin/theme
138
+ msgid "http://lopo.it/duplicate-post-plugin/"
139
+ msgstr ""
140
+
141
  #. Description of the plugin/theme
142
  msgid "Creates a copy of a post."
143
  msgstr ""
144
 
145
+ #. Author of the plugin/theme
146
+ msgid "Enrico Battocchi"
147
+ msgstr ""
148
 
149
+ #. Author URI of the plugin/theme
150
+ msgid "http://lopo.it"
151
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://lopo.it/duplicate-post-plugin/
4
  Tags: duplicate post, copy, clone
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 2.0
8
 
9
  Clone posts and pages.
10
 
@@ -12,7 +12,7 @@ Clone posts and pages.
12
 
13
  This plugin allows to create a copy of a post (or page) in two ways.
14
 
15
- 1. In 'Edit Posts'/'Edit Pages', you can click on 'Duplicate' link below the post/page title: this will immediately create a copy (with the same publish status of the original: 'publish', 'draft' or 'pending') and return to the list.
16
 
17
  2. While editing a post/page, you can click on 'Copy to a new draft' above "Cancel"/"Move to trash". This will lead to the edit page for the new draft: change what you want, click on 'Publish' and you're done.
18
 
@@ -23,6 +23,7 @@ There is also a **template tag**, so you can put it in your templates and clone
23
  In the Options page under Settings it is now possible to choose:
24
 
25
  * if the original post/page date must be copied too
 
26
  * if the original post/page excerpt must be copied too
27
  * which taxonomies and custom fields must not be copied
28
  * a prefix (or a suffix) to place before (or after) the title of the cloned post/page
@@ -72,13 +73,16 @@ There is an open ticket in WordPress Trac, as other plugin developers too are in
72
 
73
  == Screenshots ==
74
 
75
- 1. Here you can copy the post you're editing to a new draft
76
  2. By clicking on "Duplicate" the post is cloned immediately.
77
- 3. The option page
78
- 4. The template tag manually added to the Twenty Ten theme. Click on the "Clone" link and you're redirected to the edit screen for a new draft copy of your post.
79
 
80
  == Upgrade Notice ==
81
 
 
 
 
82
  = 2.0 =
83
  Several improvements and new features, see changelog. Requires WP 3.0+.
84
 
@@ -90,6 +94,10 @@ New features and customization, WP 3.0 compatibility: you should upgrade if you
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 2.0 =
94
  * WP 3.3 compatibility (still not tested against multiblog feature, so beware)
95
  * Minimum WP version: 3.0
4
  Tags: duplicate post, copy, clone
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 2.0.1
8
 
9
  Clone posts and pages.
10
 
12
 
13
  This plugin allows to create a copy of a post (or page) in two ways.
14
 
15
+ 1. In 'Edit Posts'/'Edit Pages', you can click on 'Duplicate' link below the post/page title: this will immediately create a copy and return to the list.
16
 
17
  2. While editing a post/page, you can click on 'Copy to a new draft' above "Cancel"/"Move to trash". This will lead to the edit page for the new draft: change what you want, click on 'Publish' and you're done.
18
 
23
  In the Options page under Settings it is now possible to choose:
24
 
25
  * if the original post/page date must be copied too
26
+ * if the original post/page status (draft, published, pending) must be copied too when cloning from the post list
27
  * if the original post/page excerpt must be copied too
28
  * which taxonomies and custom fields must not be copied
29
  * a prefix (or a suffix) to place before (or after) the title of the cloned post/page
73
 
74
  == Screenshots ==
75
 
76
+ 1. Here you can copy the post you're editing to a new draft.
77
  2. By clicking on "Duplicate" the post is cloned immediately.
78
+ 3. The options page.
79
+ 4. The template tag manually added to Twenty Ten theme. Click on the "Clone" link and you're redirected to the edit screen for a new draft copy of your post.
80
 
81
  == Upgrade Notice ==
82
 
83
+ = 2.0.1 =
84
+ Bug fix + new option
85
+
86
  = 2.0 =
87
  Several improvements and new features, see changelog. Requires WP 3.0+.
88
 
94
 
95
  == Changelog ==
96
 
97
+ = 2.0.1 =
98
+ * Fixed bug for action filters
99
+ * New option so you can choose if cloning from the posts list must copy the post status (draft, published, pending) too.
100
+
101
  = 2.0 =
102
  * WP 3.3 compatibility (still not tested against multiblog feature, so beware)
103
  * Minimum WP version: 3.0
screenshot-3.png CHANGED
Binary file