Can no longer manually edit register.php
-
I am using WP 4.3.1 installed as a directory in root. In order to combat spam registrations, I have been manually editing the register.php files and bp-members-screens.php files each time I update Buddypress to add a challenge field with a simple question. These were the files I was editing:
To add the challenge field:
\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.php
\wp-content\plugins\buddypress\bp-themes\bp-default\registration\register.phpTo accept the incoming form data:
\wp-content\plugins\buddypress\bp-members\bp-members-screens.phpEach Buddypress upgrade would revert these files to the default, and I would manually add the challenge question again. This worked for almost two years, and throughout several Buddypress upgrades, up to and including Buddypress 2.3.x.
Recently I upgraded from 2.3.x to Buddypress 2.4.3. This was the ONLY change I made. I did not upgrade any themes or other plugins. I went to edit the files above, only to find that editing them no longer affects the registration page. I cleared caches, then disabled all of my caching plugins and even deleted the two register.php files above from the server, and the registration form was not affected. With my manual code addition to bp-members-screens.php that REQUIRES the challenge field text to be present, forms with no challenge field submitted were succeeding. So then I deleted bp-members-screens.php from the server entirely, and registrations were STILL succeeding.
This leads me to believe that in Buddypress 2.4.x the registration page is generated and processed in a different way, and the files above are no longer used. If so, where can I go to edit them now?
Thanks in advance for your help.
- The topic ‘Can no longer manually edit register.php’ is closed to new replies.