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
782127d8
Commit
782127d8
authored
5 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
target blank
parent
58a8ee24
No related branches found
No related tags found
1 merge request
!24
SlimPlugin, some interfaces, filter storage and more
Pipeline
#8410
passed
5 years ago
Stage: tools
Stage: tests
Stage: pre-deploy
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/Plugin/AbstractPlugin.php
+3
-3
3 additions, 3 deletions
src/Plugin/AbstractPlugin.php
with
4 additions
and
3 deletions
CHANGELOG.md
+
1
−
0
View file @
782127d8
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
-
Conditional - interface to tag classes that should be instantiated/hooked only in given state
-
Conditional - interface to tag classes that should be instantiated/hooked only in given state
### Changed
### Changed
-
WordpressFilterStorage - store plugin using WordPress filter system
-
WordpressFilterStorage - store plugin using WordPress filter system
-
target blank in default plugin links
### Fixed
### Fixed
-
Fixed assets and plugin url issues
-
Fixed assets and plugin url issues
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/AbstractPlugin.php
+
3
−
3
View file @
782127d8
...
@@ -198,20 +198,20 @@ abstract class AbstractPlugin extends SlimPlugin {
...
@@ -198,20 +198,20 @@ abstract class AbstractPlugin extends SlimPlugin {
}
}
$plugin_links
=
[
$plugin_links
=
[
'<a href="'
.
$support_link
.
'">'
.
__
(
'Support'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
'<a
target="_blank"
href="'
.
$support_link
.
'">'
.
__
(
'Support'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
];
];
$links
=
array_merge
(
$plugin_links
,
$links
);
$links
=
array_merge
(
$plugin_links
,
$links
);
if
(
$this
->
docs_url
)
{
if
(
$this
->
docs_url
)
{
$plugin_links
=
[
$plugin_links
=
[
'<a href="'
.
$this
->
docs_url
.
'">'
.
__
(
'Docs'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
'<a
target="_blank"
href="'
.
$this
->
docs_url
.
'">'
.
__
(
'Docs'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
];
];
$links
=
array_merge
(
$plugin_links
,
$links
);
$links
=
array_merge
(
$plugin_links
,
$links
);
}
}
if
(
$this
->
settings_url
)
{
if
(
$this
->
settings_url
)
{
$plugin_links
=
[
$plugin_links
=
[
'<a href="'
.
$this
->
settings_url
.
'">'
.
__
(
'Settings'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
'<a
target="_blank"
href="'
.
$this
->
settings_url
.
'">'
.
__
(
'Settings'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
];
];
$links
=
array_merge
(
$plugin_links
,
$links
);
$links
=
array_merge
(
$plugin_links
,
$links
);
}
}
...
...
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