WordPress.org

Support

Support » Plugins and Hacks » WP-Members: Membership Framework » [Resolved] Shortcode Bug in latest version

[Resolved] Shortcode Bug in latest version

  • Jake Jackson

    @blue-liquid-designs

    Hi,

    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!

    http://wordpress.org/extend/plugins/wp-members/

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

    @cbutlerjr

    DOH!

    Thanks for pointing that out.

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

    Jake Jackson

    @blue-liquid-designs

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

    Cheers

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