Revision Control - Version 1.9.7

Version Description

  • 1.9.2, 1.9.3, 1.9.5 all seem screwy, Something was wrong with my SVN client, it was commiting from a previous revision and not my current revision...
    • 2.8.1 compatibility

=

Download this release

Release Info

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

Code changes from version 1.9.5 to 1.9.7

Files changed (2) hide show
  1. readme.txt +4 -6
  2. revision-control.php +7 -16
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: dd32
3
  Tags: 2.7, 2.6, revisions, post, admin
4
  Requires at least: 2.7
5
  Tested up to: 2.8
6
- Stable tag: 1.9.3
7
 
8
  Revision Control allows finer control over the Post Revision system included with WordPress 2.6
9
 
@@ -60,11 +60,9 @@ The plugin also allows the deletion of specific revisions via the Revisions post
60
  = 1.9.1 =
61
  * Small bugfixes
62
 
63
- = 1.9.2 =
64
- * WordPress 2.8.1 compatibility
65
-
66
- = 1.9.3 =
67
- * Ok, So last .2 didnt work.
68
 
69
  == Screenshots ==
70
 
3
  Tags: 2.7, 2.6, revisions, post, admin
4
  Requires at least: 2.7
5
  Tested up to: 2.8
6
+ Stable tag: 1.9.7
7
 
8
  Revision Control allows finer control over the Post Revision system included with WordPress 2.6
9
 
60
  = 1.9.1 =
61
  * Small bugfixes
62
 
63
+ = 1.9.7 =
64
+ * 1.9.2, 1.9.3, 1.9.5 all seem screwy, Something was wrong with my SVN client, it was commiting from a previous revision and not my current revision...
65
+ * 2.8.1 compatibility
 
 
66
 
67
  == Screenshots ==
68
 
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.9.1
8
  */
9
 
10
  /**
@@ -23,28 +23,18 @@ function rc_loaded() {
23
 
24
  //Ok, Time to add Admin related hooks :)
25
  add_action('do_meta_boxes', 'rc_meta_box_manip', 15, 2);
26
- add_action('admin_init', 'rc_admin_init');
27
 
28
  //Now the Defines.
29
  rc_define();
30
  }
31
 
32
  /**
33
- * Add the Menu items. DOES NOT USE THE API; I'd like a bit better location than the end of the list.
34
  */
35
- function rc_admin_init() {
36
- global $submenu;
37
-
38
  //Hack into the Menu ordering
39
- $submenu['options-general.php'][17] = array( __('Revisions', 'revision-control'),
40
- 'manage_options',
41
- 'revision-control',
42
- __('Revision Control', 'revision-control')
43
- );
44
- ksort($submenu['options-general.php']); //Put it back in order
45
-
46
- //Add a menu callback
47
- add_action( get_plugin_page_hookname( 'revision-control', 'options-general.php'), 'rc_admin' );
48
 
49
  //Load any translations.
50
  load_plugin_textdomain( 'revision-control',
@@ -336,6 +326,7 @@ function rc_admin() {
336
  <div class="message error"><p><?php _e('<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.', 'revision-control') ?></p></div>
337
  <?php endif; ?>
338
  <div class="wrap">
 
339
  <h2><?php _e('Revision Control', 'revision-control') ?></h2>
340
  <form method="post" action="options-general.php?page=revision-control">
341
  <?php wp_nonce_field('update-options') ?>
@@ -396,7 +387,7 @@ class revision_control {
396
  var $dd32_requires = 3;
397
  var $basename = '';
398
  var $folder = '';
399
- var $version = '1.9';
400
 
401
  function revision_control() {
402
  //Set the directory of the plugin:
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.9.7
8
  */
9
 
10
  /**
23
 
24
  //Ok, Time to add Admin related hooks :)
25
  add_action('do_meta_boxes', 'rc_meta_box_manip', 15, 2);
26
+ add_action('admin_menu', 'rc_admin_menu');
27
 
28
  //Now the Defines.
29
  rc_define();
30
  }
31
 
32
  /**
33
+ * Add the Menu items.
34
  */
35
+ function rc_admin_menu() {
 
 
36
  //Hack into the Menu ordering
37
+ add_options_page( __('Revision Control', 'revision-control'), __('Revisions', 'revision-control'), 'manage_options', 'revision-control', 'rc_admin');
 
 
 
 
 
 
 
 
38
 
39
  //Load any translations.
40
  load_plugin_textdomain( 'revision-control',
326
  <div class="message error"><p><?php _e('<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.', 'revision-control') ?></p></div>
327
  <?php endif; ?>
328
  <div class="wrap">
329
+ <?php screen_icon(); ?>
330
  <h2><?php _e('Revision Control', 'revision-control') ?></h2>
331
  <form method="post" action="options-general.php?page=revision-control">
332
  <?php wp_nonce_field('update-options') ?>
387
  var $dd32_requires = 3;
388
  var $basename = '';
389
  var $folder = '';
390
+ var $version = '1.9.7';
391
 
392
  function revision_control() {
393
  //Set the directory of the plugin: