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
e9422bef
Commit
e9422bef
authored
7 years ago
by
Krzysiek
Browse files
Options
Downloads
Patches
Plain Diff
build -> build_plugin
parent
92a8b920
No related branches found
No related tags found
1 merge request
!1
Devel 1.10 - Wymagana wersja PHP i Wordpress
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
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
3 additions
and
3 deletions
classes/plugin-template-factory.php
+
2
−
2
View file @
e9422bef
...
...
@@ -14,7 +14,7 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10
*
* @return WPDesk_Plugin_Template_Plugin
*/
public
static
function
build
()
{
public
static
function
build
_plugin
()
{
$wpdesk_plugin_template_plugin_data
=
array
(
'plugin'
=>
plugin_basename
(
__FILE__
),
'product_id'
=>
'WP Desk Plugin Template'
,
...
...
@@ -34,7 +34,7 @@ final class WPDesk_Plugin_Template_Factory implements WPDesk_Plugin_Factory_1_10
*/
public
static
function
get_plugin_instance
()
{
if
(
empty
(
self
::
$instance
)
)
{
self
::
$instance
=
self
::
build
();
self
::
$instance
=
self
::
build
_plugin
();
}
return
self
::
$instance
;
...
...
This diff is collapsed.
Click to expand it.
classes/wpdesk/interface-plugin-factory.php
+
1
−
1
View file @
e9422bef
...
...
@@ -7,6 +7,6 @@ if ( ! defined( 'ABSPATH' ) ) {
interface
WPDesk_Plugin_Factory_1_10
{
const
WPDESK_FILTER_PLUGIN_CLASS
=
'wpdesk_plugin_class'
;
static
function
build
();
static
function
build
_plugin
();
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