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
92a8b920
Commit
92a8b920
authored
7 years ago
by
Krzysiek
Browse files
Options
Downloads
Patches
Plain Diff
get_instance -> get_plugin_instance
parent
c6936202
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Devel 1.10 - Wymagana wersja PHP i Wordpress
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap.php
+1
-1
1 addition, 1 deletion
bootstrap.php
classes/plugin-template-factory.php
+2
-2
2 additions, 2 deletions
classes/plugin-template-factory.php
classes/wpdesk/interface-plugin-factory.php
+1
-1
1 addition, 1 deletion
classes/wpdesk/interface-plugin-factory.php
with
4 additions
and
4 deletions
bootstrap.php
+
1
−
1
View file @
92a8b920
...
@@ -8,4 +8,4 @@ require_once __DIR__ . '/vendor/autoload.php';
...
@@ -8,4 +8,4 @@ require_once __DIR__ . '/vendor/autoload.php';
require_once
(
'classes/wpdesk/class-plugin.php'
);
require_once
(
'classes/wpdesk/class-plugin.php'
);
require_once
(
'classes/plugin-template-factory.php'
);
require_once
(
'classes/plugin-template-factory.php'
);
WPDesk_Plugin_Template_Factory
::
get_instance
();
WPDesk_Plugin_Template_Factory
::
get_plugin_instance
();
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
classes/plugin-template-factory.php
+
2
−
2
View file @
92a8b920
<?php
<?php
require_once
(
'wpdesk/class-plugin.php'
);
require_once
(
'wpdesk/class-plugin.php'
);
require_once
(
'wpdesk/interface-plugin-
builder
.php'
);
require_once
(
'wpdesk/interface-plugin-
factory
.php'
);
require_once
(
'plugin-template-plugin.php'
);
require_once
(
'plugin-template-plugin.php'
);
...
@@ -32,7 +32,7 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10
...
@@ -32,7 +32,7 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10
*
*
* @return WPDesk_Plugin_Template_Plugin
* @return WPDesk_Plugin_Template_Plugin
*/
*/
public
static
function
get_instance
()
{
public
static
function
get_
plugin_
instance
()
{
if
(
empty
(
self
::
$instance
)
)
{
if
(
empty
(
self
::
$instance
)
)
{
self
::
$instance
=
self
::
build
();
self
::
$instance
=
self
::
build
();
}
}
...
...
This diff is collapsed.
Click to expand it.
classes/wpdesk/interface-plugin-factory.php
+
1
−
1
View file @
92a8b920
...
@@ -8,5 +8,5 @@ interface WPDesk_Plugin_Factory_1_10 {
...
@@ -8,5 +8,5 @@ interface WPDesk_Plugin_Factory_1_10 {
const
WPDESK_FILTER_PLUGIN_CLASS
=
'wpdesk_plugin_class'
;
const
WPDESK_FILTER_PLUGIN_CLASS
=
'wpdesk_plugin_class'
;
static
function
build
();
static
function
build
();
static
function
get_instance
();
static
function
get_
plugin_
instance
();
}
}
\ No newline at end of file
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