Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Merge requests
!39
fix/i18n
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix/i18n
fix/i18n
into
master
Overview
1
Commits
2
Pipelines
1
Changes
2
Merged
Bartek Jaskulski
requested to merge
fix/i18n
into
master
7 months ago
Overview
1
Commits
2
Pipelines
1
Changes
2
Expand
fix: remove translations loading in plugin
chore: add changelog entry
👍
1
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d48dfe85
2 commits,
7 months ago
2 files
+
5
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/AbstractPlugin.php
+
1
−
10
Options
@@ -152,22 +152,13 @@ abstract class AbstractPlugin extends SlimPlugin {
protected
function
hooks
()
{
add_action
(
'admin_enqueue_scripts'
,
[
$this
,
'admin_enqueue_scripts'
]
);
add_action
(
'wp_enqueue_scripts'
,
[
$this
,
'wp_enqueue_scripts'
]
);
add_action
(
'plugins_loaded'
,
[
$this
,
'load_plugin_text_domain'
]
);
add_filter
(
'plugin_action_links_'
.
plugin_basename
(
$this
->
get_plugin_file_path
()
),
[
$this
,
'links_filter'
]
);
}
/**
* Initialize plugin test domain. This is a hook function. Do not execute directly.
*
* @return void
*/
public
function
load_plugin_text_domain
()
{
load_plugin_textdomain
(
$this
->
get_text_domain
(),
''
,
$this
->
get_namespace
()
.
'/lang/'
);
}
/**
/**
* Append JS scripts in the WordPress admin panel. This is a hook function. Do not execute directly.
*
* @return void
Loading