Support » Plugin: WP-Members Membership Plugin » Shortcode Bug in latest version

  • Resolved Jake Jackson



    I just thought I’d point out a bug related to the shortcode routing. I had the problem where I created a custom registration page but the page was showing both login and registration forms.

    The problem turned out to be line 209 of wp-members-core.php:
    $page = ( ‘user-profile’ ) ? ‘members-area’ : $page;

    The above line always returns true and turns $page into members-area.

    The replacement line solved the problem:
    $page = ( $page == ‘user-profile’ ) ? ‘members-area’ : $page;

    Thought I’d let you know.

    Thanks for the great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler



    Thanks for pointing that out.

    I put the correction in the download package and will release a patch announcement.

    Jake Jackson


    No worries. It’s always nice to get feedback about the product your working on (I develop my own WP plugin too).


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode Bug in latest version’ is closed to new replies.