Revision Control - Version 1.8

Version Description

  • German Translation from Tux
    • Czech Translation from Pavel
    • Dutch Translation from Steven
    • Russian Translation from
    • French Translation from David
    • Bug fix: Limit revisions dropdown sticks to 2 revisions on admin panel.
    • No features added.

=

Download this release

Release Info

Developer dd32
Plugin Icon wp plugin Revision Control
Version 1.8
Comparing to
See all releases

Code changes from version 1.7 to 1.8

langs/revision-control-cs_CZ.mo ADDED
Binary file
langs/revision-control-cs_CZ.po ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-11 16:38+1000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Dion Hulse <contact@dd32.id.au>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Czech\n"
13
+ "X-Poedit-Country: CZECH REPUBLIC\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: revision-control.php:38
19
+ #: revision-control.php:151
20
+ #: revision-control.php:294
21
+ msgid "Revisions"
22
+ msgstr "Verze"
23
+
24
+ #: revision-control.php:41
25
+ #: revision-control.php:337
26
+ msgid "Revision Control"
27
+ msgstr "Správa verzí"
28
+
29
+ #: revision-control.php:142
30
+ msgid "Post Revisions"
31
+ msgstr "Předchozí verze"
32
+
33
+ #: revision-control.php:153
34
+ #: revision-control.php:347
35
+ #: revision-control.php:368
36
+ msgid "Enabled"
37
+ msgstr "Zapnuto"
38
+
39
+ #: revision-control.php:154
40
+ #: revision-control.php:157
41
+ #: revision-control.php:165
42
+ msgid " (default)"
43
+ msgstr "(přednastavené)"
44
+
45
+ #: revision-control.php:156
46
+ #: revision-control.php:350
47
+ #: revision-control.php:371
48
+ msgid "Disabled"
49
+ msgstr "Vypnuto"
50
+
51
+ #: revision-control.php:164
52
+ #: revision-control.php:357
53
+ #: revision-control.php:377
54
+ #, php-format
55
+ msgid "Limit to %d Revisions"
56
+ msgstr "Povol %d"
57
+
58
+ #: revision-control.php:262
59
+ msgid "Are you sure you wish to delete this Revision?"
60
+ msgstr "Opravdu smazat tuto verzi?"
61
+
62
+ #: revision-control.php:262
63
+ msgid "(delete)"
64
+ msgstr "(smazat)"
65
+
66
+ #: revision-control.php:329
67
+ msgid "Settings saved."
68
+ msgstr "Nastavení uloženo"
69
+
70
+ #: revision-control.php:334
71
+ msgid "<strong>Error:</strong> You have defined <code>WP_POST_REVISIONS</code> in your <code>wp-config.php</code> file, In order to use this plugin you will need to remove it."
72
+ msgstr "<strong>Chyba:</strong> V konfiguračním souboru <code>wp-config.php</code> je nastaveno <code>WP_POST_REVISIONS</code>, pro správný běh tohoto pluginu je nutné tuto volbu odstranit."
73
+
74
+ #: revision-control.php:343
75
+ msgid "Default Revision Status for Posts"
76
+ msgstr "Přednastavený stav verzí pro příspěvky"
77
+
78
+ #: revision-control.php:364
79
+ msgid "Default Revision Status for Pages"
80
+ msgstr "Přednastavený stav verzí pro stránky"
81
+
82
+ #: revision-control.php:385
83
+ msgid "Save Changes"
84
+ msgstr "Uložit změny"
85
+
langs/revision-control-de_DE.mo ADDED
Binary file
langs/revision-control-de_DE.po ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Revision-Control\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-11 16:37+1000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Dion Hulse <contact@dd32.id.au>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: revision-control.php:38
17
+ #: revision-control.php:151
18
+ #: revision-control.php:294
19
+ msgid "Revisions"
20
+ msgstr "Revisionen"
21
+
22
+ #: revision-control.php:41
23
+ #: revision-control.php:337
24
+ msgid "Revision Control"
25
+ msgstr "Revisionskontrolle"
26
+
27
+ #: revision-control.php:142
28
+ msgid "Post Revisions"
29
+ msgstr "Revisionen"
30
+
31
+ #: revision-control.php:153
32
+ #: revision-control.php:347
33
+ #: revision-control.php:368
34
+ msgid "Enabled"
35
+ msgstr "Aktiviert"
36
+
37
+ #: revision-control.php:154
38
+ #: revision-control.php:157
39
+ #: revision-control.php:165
40
+ msgid " (default)"
41
+ msgstr " (Standard)"
42
+
43
+ #: revision-control.php:156
44
+ #: revision-control.php:350
45
+ #: revision-control.php:371
46
+ msgid "Disabled"
47
+ msgstr "Deaktiviert"
48
+
49
+ #: revision-control.php:164
50
+ #: revision-control.php:357
51
+ #: revision-control.php:377
52
+ #, php-format
53
+ msgid "Limit to %d Revisions"
54
+ msgstr "Begrenze auf %d Revisionen"
55
+
56
+ #: revision-control.php:262
57
+ msgid "Are you sure you wish to delete this Revision?"
58
+ msgstr "Sind Sie sich sicher, dass Sie diese Revision löschen möchen?"
59
+
60
+ #: revision-control.php:262
61
+ msgid "(delete)"
62
+ msgstr "(löschen)"
63
+
64
+ #: revision-control.php:329
65
+ msgid "Settings saved."
66
+ msgstr "Einstellungen gespeichert."
67
+
68
+ #: revision-control.php:334
69
+ msgid "<strong>Error:</strong> You have defined <code>WP_POST_REVISIONS</code> in your <code>wp-config.php</code> file, In order to use this plugin you will need to remove it."
70
+ msgstr "<strong>Fehler:</strong> Sie haben <code>WP_POST_REVISIONS</code> in Ihrer <code>wp-config.php</code>-Datei definiert; um dieses Plugin nutzen zu können, müssen Sie es entfernen."
71
+
72
+ #: revision-control.php:343
73
+ msgid "Default Revision Status for Posts"
74
+ msgstr "Standard-Revisionsstatus für Artikel"
75
+
76
+ #: revision-control.php:364
77
+ msgid "Default Revision Status for Pages"
78
+ msgstr "Standard-Revisionsstatus für Seiten"
79
+
80
+ #: revision-control.php:385
81
+ msgid "Save Changes"
82
+ msgstr "Änderungen speichern"
83
+
langs/revision-control-fr_FR.mo ADDED
Binary file
langs/revision-control-fr_FR.po ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: 1.7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-17 22:16+1000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Dion Hulse <contact@dd32.id.au>\n"
8
+ "Language-Team: PozHonks\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: French\n"
13
+ "X-Poedit-Country: FRANCE\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: _e;__\n"
16
+ "X-Poedit-Basepath: ../\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: revision-control.php:38
20
+ #: revision-control.php:151
21
+ #: revision-control.php:294
22
+ msgid "Revisions"
23
+ msgstr "Révisions"
24
+
25
+ #: revision-control.php:41
26
+ #: revision-control.php:337
27
+ msgid "Revision Control"
28
+ msgstr "Contrôle des Révisions"
29
+
30
+ #: revision-control.php:142
31
+ msgid "Post Revisions"
32
+ msgstr "Historique de l'article"
33
+
34
+ #: revision-control.php:153
35
+ #: revision-control.php:347
36
+ #: revision-control.php:368
37
+ msgid "Enabled"
38
+ msgstr "Activé"
39
+
40
+ #: revision-control.php:154
41
+ #: revision-control.php:157
42
+ #: revision-control.php:165
43
+ msgid " (default)"
44
+ msgstr " (par défaut)"
45
+
46
+ #: revision-control.php:156
47
+ #: revision-control.php:350
48
+ #: revision-control.php:371
49
+ msgid "Disabled"
50
+ msgstr "Désactivé"
51
+
52
+ #: revision-control.php:164
53
+ #: revision-control.php:357
54
+ #: revision-control.php:377
55
+ #, php-format
56
+ msgid "Limit to %d Revisions"
57
+ msgstr "Limité à %d versions"
58
+
59
+ #: revision-control.php:262
60
+ msgid "Are you sure you wish to delete this Revision?"
61
+ msgstr "Êtes-vous sûr de vouloir effacer cette version ?"
62
+
63
+ #: revision-control.php:262
64
+ msgid "(delete)"
65
+ msgstr "(effacer)"
66
+
67
+ #: revision-control.php:329
68
+ msgid "Settings saved."
69
+ msgstr "Paramètres enregistrés."
70
+
71
+ #: revision-control.php:334
72
+ msgid "<strong>Error:</strong> You have defined <code>WP_POST_REVISIONS</code> in your <code>wp-config.php</code> file, In order to use this plugin you will need to remove it."
73
+ msgstr "<strong>Erreur:</strong> Vous avez défini <code>WP_POST_REVISIONS</code> dans votre fichier <code>wp-config.php</code>. Afin d'utiliser cette extensions, vous devez retirer ce code."
74
+
75
+ #: revision-control.php:343
76
+ msgid "Default Revision Status for Posts"
77
+ msgstr "Réglage Général de l'Historique des Articles"
78
+
79
+ #: revision-control.php:364
80
+ msgid "Default Revision Status for Pages"
81
+ msgstr "Réglage Général de l'Historique des Pages"
82
+
83
+ #: revision-control.php:385
84
+ msgid "Save Changes"
85
+ msgstr "Enregistrer les modifications"
86
+
langs/revision-control-nl_NL.mo ADDED
Binary file
langs/revision-control-nl_NL.po ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Revision Control\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-12 12:00+1000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Dion Hulse <contact@dd32.id.au>\n"
8
+ "Language-Team: <contact@dd32.id.au>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: French\n"
13
+ "X-Poedit-Country: Australia\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-KeywordsList: __;_e\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: revision-control.php:38
20
+ #: revision-control.php:151
21
+ #: revision-control.php:294
22
+ msgid "Revisions"
23
+ msgstr "Revisies"
24
+
25
+ #: revision-control.php:41
26
+ #: revision-control.php:337
27
+ msgid "Revision Control"
28
+ msgstr "Revisie Beheer"
29
+
30
+ #: revision-control.php:142
31
+ msgid "Post Revisions"
32
+ msgstr "Bericht Revisies"
33
+
34
+ #: revision-control.php:153
35
+ #: revision-control.php:347
36
+ #: revision-control.php:368
37
+ msgid "Enabled"
38
+ msgstr "Geactiveerd"
39
+
40
+ #: revision-control.php:154
41
+ #: revision-control.php:157
42
+ #: revision-control.php:165
43
+ msgid " (default)"
44
+ msgstr "(standaard)"
45
+
46
+ #: revision-control.php:156
47
+ #: revision-control.php:350
48
+ #: revision-control.php:371
49
+ msgid "Disabled"
50
+ msgstr "Uitgeschakelt"
51
+
52
+ #: revision-control.php:164
53
+ #: revision-control.php:357
54
+ #: revision-control.php:377
55
+ #, php-format
56
+ msgid "Limit to %d Revisions"
57
+ msgstr "Beperk tot %d revisies"
58
+
59
+ #: revision-control.php:262
60
+ msgid "Are you sure you wish to delete this Revision?"
61
+ msgstr "Weet je zeker dat je deze revisie wilt verwijderen?"
62
+
63
+ #: revision-control.php:262
64
+ msgid "(delete)"
65
+ msgstr "(verwijderen)"
66
+
67
+ #: revision-control.php:329
68
+ msgid "Settings saved."
69
+ msgstr "Instellingen opgeslagen."
70
+
71
+ #: revision-control.php:334
72
+ msgid "<strong>Error:</strong> You have defined <code>WP_POST_REVISIONS</code> in your <code>wp-config.php</code> file, In order to use this plugin you will need to remove it."
73
+ msgstr "<strong>Fout:</strong> <code>WP_POST_REVISIONS</code> is gedefinieerd in <code>wp-config.php</code>, je dient deze waarde te verwijderen als je gebruik wilt maken van deze plugin."
74
+
75
+ #: revision-control.php:343
76
+ msgid "Default Revision Status for Posts"
77
+ msgstr "Standaard Revisie Status voor Berichten"
78
+
79
+ #: revision-control.php:364
80
+ msgid "Default Revision Status for Pages"
81
+ msgstr "Standaard Revisie Status voor Paginas"
82
+
83
+ #: revision-control.php:385
84
+ msgid "Save Changes"
85
+ msgstr "Wijzigingen Opslaan"
86
+
langs/revision-control-ru_RU.mo ADDED
Binary file
langs/revision-control-ru_RU.po ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Revision Control (Russian)\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-15 18:23+1000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Dion Hulse <contact@dd32.id.au>\n"
8
+ "Language-Team: Lecactus <lecactus@lecactus.ru>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Russian\n"
13
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-KeywordsList: __;_e\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: revision-control.php:38
20
+ #: revision-control.php:151
21
+ #: revision-control.php:294
22
+ msgid "Revisions"
23
+ msgstr "Ревизии"
24
+
25
+ #: revision-control.php:41
26
+ #: revision-control.php:337
27
+ msgid "Revision Control"
28
+ msgstr "Управление ревизиями"
29
+
30
+ #: revision-control.php:142
31
+ msgid "Post Revisions"
32
+ msgstr "Ревизии записи"
33
+
34
+ #: revision-control.php:153
35
+ #: revision-control.php:347
36
+ #: revision-control.php:368
37
+ msgid "Enabled"
38
+ msgstr "Включено"
39
+
40
+ #: revision-control.php:154
41
+ #: revision-control.php:157
42
+ #: revision-control.php:165
43
+ msgid " (default)"
44
+ msgstr "(по умолчанию)"
45
+
46
+ #: revision-control.php:156
47
+ #: revision-control.php:350
48
+ #: revision-control.php:371
49
+ msgid "Disabled"
50
+ msgstr "Отключено"
51
+
52
+ #: revision-control.php:164
53
+ #: revision-control.php:357
54
+ #: revision-control.php:377
55
+ #, php-format
56
+ msgid "Limit to %d Revisions"
57
+ msgstr "Ограничить до %d ревизий"
58
+
59
+ #: revision-control.php:262
60
+ msgid "Are you sure you wish to delete this Revision?"
61
+ msgstr "Вы уверены что хотите удалить эту ревизию?"
62
+
63
+ #: revision-control.php:262
64
+ msgid "(delete)"
65
+ msgstr "(удалить)"
66
+
67
+ #: revision-control.php:329
68
+ msgid "Settings saved."
69
+ msgstr "Настройки сохранены."
70
+
71
+ #: revision-control.php:334
72
+ msgid "<strong>Error:</strong> You have defined <code>WP_POST_REVISIONS</code> in your <code>wp-config.php</code> file, In order to use this plugin you will need to remove it."
73
+ msgstr "<strong>Ошибка:</strong> Вы определили <code>WP_POST_REVISIONS</code> в вашем файле <code>wp-config.php</code>. Чтобы использовать этот плагин, вы должны удалить/закомментировать эту строку."
74
+
75
+ #: revision-control.php:343
76
+ msgid "Default Revision Status for Posts"
77
+ msgstr "Статус ревизий по умолчанию для записей"
78
+
79
+ #: revision-control.php:364
80
+ msgid "Default Revision Status for Pages"
81
+ msgstr "Статус ревизий по умолчанию для страниц"
82
+
83
+ #: revision-control.php:385
84
+ msgid "Save Changes"
85
+ msgstr "Сохранить изменения"
86
+
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Revision Control ===
2
  Contributors: dd32
3
  Tags: 2.6, revisions, post, admin
4
  Requires at least: 2.6
5
  Tested up to: 2.7-bleeding
6
- Stable tag: 1.7
7
 
8
  Revision Control allows finer control over the Post Revision system included with WordPress 2.6
9
 
@@ -38,6 +38,15 @@ The plugin also allows the deletion of specific revisions via the Revisions post
38
  * Added HeBrew translation, Thanks Elad!
39
  * No features added.
40
 
 
 
 
 
 
 
 
 
 
41
  == Screenshots ==
42
 
43
  1. The Global Settings
1
+ === Revision Control ===
2
  Contributors: dd32
3
  Tags: 2.6, revisions, post, admin
4
  Requires at least: 2.6
5
  Tested up to: 2.7-bleeding
6
+ Stable tag: 1.8
7
 
8
  Revision Control allows finer control over the Post Revision system included with WordPress 2.6
9
 
38
  * Added HeBrew translation, Thanks Elad!
39
  * No features added.
40
 
41
+ = 1.8 =
42
+ * German Translation from Tux
43
+ * Czech Translation from Pavel
44
+ * Dutch Translation from Steven
45
+ * Russian Translation from Кактус
46
+ * French Translation from David
47
+ * Bug fix: Limit revisions dropdown sticks to 2 revisions on admin panel.
48
+ * No features added.
49
+
50
  == Screenshots ==
51
 
52
  1. The Global Settings
revision-control.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Revision Control
4
  Plugin URI: http://dd32.id.au/wordpress-plugins/revision-control/
5
  Description: Allows finer control over the number of Revisions stored on a global & per-post/page basis.
6
  Author: Dion Hulse
7
- Version: 1.7
8
  */
9
 
10
  /**
@@ -223,7 +223,7 @@ function rc_perpost_value($post_ID) {
223
  $delete = count($revisions) - $number_to_delete;
224
 
225
  if ( $delete < 1 )
226
- return $return;
227
 
228
  $revisions = array_slice( $revisions, 0, $delete );
229
 
@@ -250,7 +250,7 @@ function rc_list_post_revisions( $post_id = 0 ) {
250
  foreach ( $revisions as $revision ) {
251
  if ( !current_user_can( 'read_post', $revision->ID ) )
252
  continue;
253
- if ( 'revision' === $type && wp_is_post_autosave( $revision ) )
254
  continue;
255
 
256
  $date = wp_post_revision_title( $revision );
@@ -353,7 +353,7 @@ function rc_admin() {
353
  <label for="revision-control-post-number" onclick="return false;">
354
  <select name="revision-control-post-number" onclick="jQuery('#revision-control-post-number').attr('checked', 'checked');">
355
  <?php for ( $i = 2; $i < 15; $i++ ) : ?>
356
- <option value="<?php echo $i ?>"<?php if ( WP_POST_REVISIONS === $i ) echo ' selected="selected"'
357
  ?>><?php printf( __('Limit to %d Revisions', 'revision-control'), $i) ?></option>
358
  <?php endfor; ?>
359
  </select>
@@ -374,7 +374,7 @@ function rc_admin() {
374
  <label for="revision-control-page-number" onclick="return false;">
375
  <select name="revision-control-page-number" onclick="jQuery('#revision-control-page-number').attr('checked', 'checked');">
376
  <?php for ( $i = 2; $i < 15; $i++ ) : ?>
377
- <option value="<?php echo $i ?>"<?php if ( WP_POST_REVISIONS === $i ) echo ' selected="selected"' ?>><?php printf( __('Limit to %d Revisions', 'revision-control'), $i) ?></option>
378
  <?php endfor; ?>
379
  </select>
380
  </label>
4
  Plugin URI: http://dd32.id.au/wordpress-plugins/revision-control/
5
  Description: Allows finer control over the number of Revisions stored on a global & per-post/page basis.
6
  Author: Dion Hulse
7
+ Version: 1.8
8
  */
9
 
10
  /**
223
  $delete = count($revisions) - $number_to_delete;
224
 
225
  if ( $delete < 1 )
226
+ return;
227
 
228
  $revisions = array_slice( $revisions, 0, $delete );
229
 
250
  foreach ( $revisions as $revision ) {
251
  if ( !current_user_can( 'read_post', $revision->ID ) )
252
  continue;
253
+ if ( 'revision' === $revision->post_type && wp_is_post_autosave( $revision ) )
254
  continue;
255
 
256
  $date = wp_post_revision_title( $revision );
353
  <label for="revision-control-post-number" onclick="return false;">
354
  <select name="revision-control-post-number" onclick="jQuery('#revision-control-post-number').attr('checked', 'checked');">
355
  <?php for ( $i = 2; $i < 15; $i++ ) : ?>
356
+ <option value="<?php echo $i ?>"<?php if ( $defaults['post'] === $i ) echo ' selected="selected"'
357
  ?>><?php printf( __('Limit to %d Revisions', 'revision-control'), $i) ?></option>
358
  <?php endfor; ?>
359
  </select>
374
  <label for="revision-control-page-number" onclick="return false;">
375
  <select name="revision-control-page-number" onclick="jQuery('#revision-control-page-number').attr('checked', 'checked');">
376
  <?php for ( $i = 2; $i < 15; $i++ ) : ?>
377
+ <option value="<?php echo $i ?>"<?php if ( $defaults['page'] === $i ) echo ' selected="selected"' ?>><?php printf( __('Limit to %d Revisions', 'revision-control'), $i) ?></option>
378
  <?php endfor; ?>
379
  </select>
380
  </label>