4d003167 by Marty Penner

Attempt to remove dependency on Tz\import. refs #1604

1 parent ba468372
...@@ -9,9 +9,13 @@ ...@@ -9,9 +9,13 @@
9 9
10 namespace Tz\WordPress\Tools\Auth; 10 namespace Tz\WordPress\Tools\Auth;
11 11
12 use BadMethodCallException;
13 use Exception;
14 use InvalidArgumentException;
15 use LogicException;
16 use Tz\Common;
12 use Tz\WordPress\Tools; 17 use Tz\WordPress\Tools;
13 use Tz, Tz\Common; 18 use Tz;
14 use Exception, LogicException, InvalidArgumentException, BadMethodCallException;
15 use WP_User; 19 use WP_User;
16 20
17 // These are all WordPress hooks, I put them here for easy reference 21 // These are all WordPress hooks, I put them here for easy reference
...@@ -43,8 +47,6 @@ const PASS_MAX_LEN = 15; // Maximum length of password ...@@ -43,8 +47,6 @@ const PASS_MAX_LEN = 15; // Maximum length of password
43 } 47 }
44 } 48 }
45 } 49 }
46
47 Tz\import('Tz', 'trunk');
48 }); 50 });
49 51
50 /** 52 /**
......
...@@ -8,8 +8,6 @@ const CAPABILITY = 'edit_user_details'; ...@@ -8,8 +8,6 @@ const CAPABILITY = 'edit_user_details';
8 const HTML_NS = 'tzud-'; 8 const HTML_NS = 'tzud-';
9 9
10 call_user_func(function() { 10 call_user_func(function() {
11 Tz\import('Tz', 'trunk');
12
13 $role = get_role('administrator'); 11 $role = get_role('administrator');
14 $role->add_cap(CAPABILITY); 12 $role->add_cap(CAPABILITY);
15 13
...@@ -25,8 +23,8 @@ function register_field($id, $display = null) { //, Common\Callback $fn = null) ...@@ -25,8 +23,8 @@ function register_field($id, $display = null) { //, Common\Callback $fn = null)
25 } 23 }
26 24
27 Vars::$fields[$id] = Array( 25 Vars::$fields[$id] = Array(
28 'id' => $id 26 'id' => $id,
29 , 'label' => $display 27 'label' => $display
30 ); 28 );
31 } 29 }
32 30
...@@ -73,4 +71,3 @@ class Vars { ...@@ -73,4 +71,3 @@ class Vars {
73 71
74 public static $fields = Array(); 72 public static $fields = Array();
75 } 73 }
76 ?>
...\ No newline at end of file ...\ No newline at end of file
......