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
Merge requests
!39
fix/i18n
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
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
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
src/Plugin/AbstractPlugin.php
+
1
−
10
View file @ d48dfe85
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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