Ejemplo n.º 1
0
 /**
  * Initiate the class.
  * @access public
  * @param  string $path Optional, overrides the saved setting (for testing).
  */
 public function __construct($path = '')
 {
     global $wpdb;
     $this->wpdb = $wpdb;
     $this->git = new Revisr_Git();
     $this->current_dir = getcwd();
     $this->upload_dir = wp_upload_dir();
     $this->options = Revisr::get_options();
     $get_path = $this->git->config_revisr_path('mysql');
     if (is_array($get_path)) {
         $this->path = $get_path[0];
     } else {
         $this->path = '';
     }
     $this->setup_env();
 }