Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
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
wp-builder
Commits
7ca50698
Commit
7ca50698
authored
7 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
minor code review changes
parent
cb587803
No related branches found
No related tags found
1 merge request
!1
alpha version of builder
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/AbstractPlugin.php
+3
-3
3 additions, 3 deletions
src/Plugin/AbstractPlugin.php
with
3 additions
and
3 deletions
src/Plugin/AbstractPlugin.php
+
3
−
3
View file @
7ca50698
...
...
@@ -10,7 +10,7 @@ namespace WPDesk\PluginBuilder\Plugin;
*/
abstract
class
AbstractPlugin
{
/** @var \WPDesk_PluginInfo */
/** @var \WPDesk_Plugin
_
Info */
protected
$plugin_info
;
/** @var string */
...
...
@@ -32,7 +32,7 @@ abstract class AbstractPlugin {
*/
public
function
__construct
(
$plugin_info
)
{
$this
->
plugin_info
=
$plugin_info
;
$this
->
plugin_namespace
=
strtolower
(
$plugin_info
->
get_
class_name
());
// ?? NOT SURE
$this
->
plugin_namespace
=
strtolower
(
$plugin_info
->
get_
plugin_dir
());
}
public
function
init
()
{
...
...
@@ -59,7 +59,7 @@ abstract class AbstractPlugin {
* @return void
*/
public
function
load_plugin_text_domain
()
{
$plugin_translation
=
load_plugin_textdomain
(
$this
->
get_text_domain
(),
false
,
$this
->
get_namespace
()
.
'/lang/'
);
load_plugin_textdomain
(
$this
->
get_text_domain
(),
false
,
$this
->
get_namespace
()
.
'/lang/'
);
}
public
function
init_base_variables
(
)
{
...
...
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