Skip to content

Commit

Permalink
Please also apply this extra check for the case when the child theme …
Browse files Browse the repository at this point in the history
…is active but it does not have a plugin template override. Thanks
  • Loading branch information
codezz committed Jun 23, 2015
1 parent a8d2c7c commit acf2302
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/init.php
Expand Up @@ -129,6 +129,8 @@ function pmpro_pages_shortcode($atts, $content=null, $code="")
ob_start();
if(file_exists(get_stylesheet_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php"))
include(get_stylesheet_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php");
elseif(file_exists(get_template_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php"))
include(get_template_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php");
else
include(PMPRO_DIR . "/pages/" . $pmpro_page_name . ".php");

Expand Down

0 comments on commit acf2302

Please sign in to comment.