Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4d003167
authored
2013-11-07 15:33:11 -0500
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Attempt to remove dependency on Tz\import. refs #1604
1 parent
ba468372
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
com/Auth/Auth.php
com/UserDetails/UserDetails.php
com/Auth/Auth.php
View file @
4d00316
...
...
@@ -9,9 +9,13 @@
namespace
Tz\WordPress\Tools\Auth
;
use
BadMethodCallException
;
use
Exception
;
use
InvalidArgumentException
;
use
LogicException
;
use
Tz\Common
;
use
Tz\WordPress\Tools
;
use
Tz
,
Tz\Common
;
use
Exception
,
LogicException
,
InvalidArgumentException
,
BadMethodCallException
;
use
Tz
;
use
WP_User
;
// 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
}
}
}
Tz\import
(
'Tz'
,
'trunk'
);
});
/**
...
...
com/UserDetails/UserDetails.php
View file @
4d00316
...
...
@@ -8,8 +8,6 @@ const CAPABILITY = 'edit_user_details';
const
HTML_NS
=
'tzud-'
;
call_user_func
(
function
()
{
Tz\import
(
'Tz'
,
'trunk'
);
$role
=
get_role
(
'administrator'
);
$role
->
add_cap
(
CAPABILITY
);
...
...
@@ -25,8 +23,8 @@ function register_field($id, $display = null) { //, Common\Callback $fn = null)
}
Vars
::
$fields
[
$id
]
=
Array
(
'id'
=>
$id
,
'label'
=>
$display
'id'
=>
$id
,
'label'
=>
$display
);
}
...
...
@@ -73,4 +71,3 @@ class Vars {
public
static
$fields
=
Array
();
}
?>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment