Skip to content

Commit

Permalink
Make sure that member_profile_edit isset.
Browse files Browse the repository at this point in the history
* BUG FIX: Fixed warning shown for PMPro versions < 2.3
  • Loading branch information
andrewlimaza committed Apr 29, 2020
1 parent 9bad0e7 commit 07dd81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmpro-register-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function pmprorh_sortByOrder($a, $b)
function pmprorh_scripts()
{
global $pmpro_level, $pmpro_pages;
if( !is_admin() && ( !empty( $_REQUEST['level'] ) || !empty( $pmpro_level ) || is_page( $pmpro_pages['member_profile_edit'] ) ) ) {
if( !is_admin() && ( !empty( $_REQUEST['level'] ) || !empty( $pmpro_level ) || ( isset( $pmpro_pages['member_profile_edit'] ) && is_page( $pmpro_pages['member_profile_edit'] ) ) ) ) {
if(!defined("PMPRO_VERSION"))
{
//load some styles that we need from PMPro (check child theme, then parent theme, then plugin folder)
Expand Down

0 comments on commit 07dd81d

Please sign in to comment.