WP4.1 Network S2Member: user-new.php file could NOT be patched
-
After upgrading to WP4.1 the Buddypress profile pages were not displaying. I use a user_is() function to check if the displayed user has the membership level to show the profile fields and it was broken.
Then I apllied the patch again (it was set to automatic) but got this message:
Your /wp-admin/user-new.php file could NOT be patched. Unverifiable.The other files were patched and now the profie fields are back but I could not patch the user-new.php file manuallty because I can’t find this line (and that’s why I think the auto patch didn’t work):
wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) );
Instead I did this change on line 129 of user-new.php
//wpmu_signup_user( $new_user_login, $new_user_email, array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST['role'] ) ); wpmu_signup_user( $new_user_login, $new_user_email, apply_filters( 'add_signup_meta', array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ) );
Is it correct? (looks like everything is working…)
- The topic ‘WP4.1 Network S2Member: user-new.php file could NOT be patched’ is closed to new replies.