Skip to content
Snippets Groups Projects
Commit 782127d8 authored by dyszczo's avatar dyszczo
Browse files

target blank

parent 58a8ee24
No related branches found
No related tags found
1 merge request!24SlimPlugin, some interfaces, filter storage and more
Pipeline #8410 passed
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
......@@ -7,6 +7,7 @@
- Conditional - interface to tag classes that should be instantiated/hooked only in given state
### Changed
- WordpressFilterStorage - store plugin using WordPress filter system
- target blank in default plugin links
### Fixed
- Fixed assets and plugin url issues
......
......@@ -198,20 +198,20 @@ abstract class AbstractPlugin extends SlimPlugin {
}
$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 );
if ( $this->docs_url ) {
$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 );
}
if ( $this->settings_url ) {
$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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment