Skip to content

Commit

Permalink
keep support for old Pro addon plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 29, 2023
1 parent 41662bf commit 67d67d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class-visual-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public function init() {
$this->plugin_path = plugin_dir_path( __FILE__ );
$this->plugin_url = plugin_dir_url( __FILE__ );

if ( defined( 'VISUAL_PORTFOLIO_PRO' ) ) {
// Check for new standalone Pro plugin and for old Pro addon plugin for back compatibility.
if ( defined( 'VISUAL_PORTFOLIO_PRO' ) || function_exists( 'visual_portfolio_pro' ) ) {
$this->pro_plugin_path = plugin_dir_path( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
$this->pro_plugin_url = plugin_dir_url( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
}
Expand Down

0 comments on commit 67d67d6

Please sign in to comment.