• Resolved Judder

    (@judder)


    Hi

    We’ve updated

    restrict-usernames.php

    to support Buddypress correctly when registering it’s filters using function

    public function register_filters()

    as code below. If you are happy with the changes can you add it to the release to avoid us patching our version with each release?

    Many thanks

    Lines 162+

    if ( is_multisite() ) ) {
                    //Wordpress Multi-User
    				add_filter( 'wpmu_validate_user_signup', array( $this, 'bp_members_validate_user_signup' ) );
                } elseif ( defined( 'BP_VERSION' ) ) {
                    //Buddy Press
                    add_filter( 'bp_core_validate_user_signup', array( $this, 'bp_members_validate_user_signup' ) );
    			} else {
                    //Word Press
    				add_filter( 'validate_username',         array( $this, 'username_restrictor' ), 10, 2 );
    			}

    https://wordpress.org/plugins/restrict-usernames/

Viewing 1 replies (of 1 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @judder : Thanks for the patch! I have it ready to go, but before I release it, what version(s) of BuddyPress have you used the plugin under? I just want to make note of the BP compatibility in the release notes.

    And with your patch, the plugin otherwise functions as anticipated for BP?

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Registering filters correctly for Buddy Press’ is closed to new replies.