diff --git a/CHANGELOG.md b/CHANGELOG.md index c67305e6c0f43e9446776d0ba61b59182cb2e8e8..d501ec22e222cd1f782e842a4470c0a268ab91ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Plugin/AbstractPlugin.php b/src/Plugin/AbstractPlugin.php index d397d1a0fd72e16cba38e6496d3161148b12b736..20ee0261d5285ac285155f25bde6e8204cdf85bc 100644 --- a/src/Plugin/AbstractPlugin.php +++ b/src/Plugin/AbstractPlugin.php @@ -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 ); }