Skip to content

Commit

Permalink
Fix issue theme review url
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Sep 19, 2024
1 parent e5fe955 commit ac6a086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/src/about/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default function Header( { pages = [], selected = '' } ) {
return hash === selected ? 'active' : '';
};

let supportURLBasePath = ['neve', 'hestia'].indexOf( currentProduct.slug ) > -1 ? 'theme' : 'plugin';
const reviewLink = `https://wordpress.org/support/${supportURLBasePath}/${currentProduct.slug}/reviews/#new-post`;
const supportURLBasePath = ['neve', 'hestia'].indexOf( currentProduct.slug ) > -1 ? 'theme' : 'plugin';
const reviewLink = `https://wordpress.org/support/${supportURLBasePath}/${currentProduct.slug?.replaceAll( '_', '-' )}/reviews/#new-post`;

return (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Abstract_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function get_sdk_uri() {
* hence we also need to check that the path does not point to the theme else this will break the URL.
* References: https://github.com/Codeinwp/neve-pro-addon/issues/2403
*/
if ( $this->product->is_plugin() && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) {
if ( ( $this->product->is_plugin() || $this->product->is_theme() ) && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) {
return plugins_url( '/', $themeisle_sdk_max_path . '/themeisle-sdk/' );
};

Expand Down

0 comments on commit ac6a086

Please sign in to comment.