Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
b165bfad
Commit
b165bfad
authored
7 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
Usunięcie Singleton, wersja 1.6
parent
a379d45a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/wpdesk/class-plugin.php
+7
-1
7 additions, 1 deletion
classes/wpdesk/class-plugin.php
plugin-template.php
+0
-6
0 additions, 6 deletions
plugin-template.php
with
7 additions
and
7 deletions
classes/wpdesk/class-plugin.php
+
7
−
1
View file @
b165bfad
...
...
@@ -43,6 +43,12 @@ if ( ! class_exists( 'WPDesk_Plugin_1_6' ) ) {
protected
function
__construct
(
$plugin_data
=
false
)
{
$this
->
init_base_variables
();
if
(
$this
->
plugin_is_active
)
{
if
(
$this
->
plugin_has_settings
)
{
$this
->
settings
=
new
WPDesk_Settings_1_6
(
$this
,
$this
->
get_namespace
(),
$this
->
default_settings_tab
);
$this
->
options
=
$this
->
settings
->
get_settings
();
}
}
$this
->
hooks
();
}
...
...
This diff is collapsed.
Click to expand it.
plugin-template.php
+
0
−
6
View file @
b165bfad
...
...
@@ -69,12 +69,6 @@
$this
->
plugin_is_active
=
false
;
}
}
if
(
$this
->
plugin_is_active
)
{
if
(
$this
->
plugin_has_settings
)
{
$this
->
settings
=
new
WPDesk_Settings_1_6
(
$this
,
$this
->
get_namespace
(),
$this
->
default_settings_tab
);
$this
->
options
=
$this
->
settings
->
get_settings
();
}
}
parent
::
__construct
(
$plugin_data
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment