Skip to content

Commit

Permalink
fix for order of classes
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Sep 14, 2011
1 parent cbf5533 commit f7fde85
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions wpdr-change-tracker.php
Expand Up @@ -12,11 +12,12 @@
class wpdr_track_meta_changes {

public $document_change_list = array();

public $wpdr;

function __construct() {

//makes all WPDR functions accessible as $this->wpdr->{function}
$this->wpdr = &Document_Revisions::$instance;
//set up class
add_action( 'plugins_loaded', array( &$this, 'setup_wpdr' ) );

//taxs
add_action( 'set_object_terms', array( &$this, 'build_taxonomy_change_list' ), 10, 6 );
Expand All @@ -31,6 +32,13 @@ function __construct() {
add_action( 'save_post', array( &$this, 'append_changes_to_revision_summary' ), 20, 1 );

}
/**
* Makes all WPDR functions accessible as $this->wpdr->{function}
* Call here so that Doc Revs is loaded
*/
function setup_wpdr() {
$this->wpdr = &Document_Revisions::$instance;
}

/**
* Compares post title to previous revisions post title and adds to internal array if changed
Expand Down

0 comments on commit f7fde85

Please sign in to comment.