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 with stages
in 3 minutes and 15 seconds
...@@ -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
......
...@@ -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 );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment