Arrow

All other users not saved when Wordpress admin is other than english | Peter's Login Redirect | Forum

Back to the login redirect plugin page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

All other users not saved when Wordpress admin is other than english

Reply to Post Add a New Topic
UserPost

8:48 am
February 6, 2012


alphabit

Guest

Hi there,

just wanted to share what happened to me today while trying to get your great redirect plugin to fully work.

I was struggling with the 2 textfield of the "all other users" section in the settings page.
It felt like the data wasn't submitted, since it always "forgot" the values and after a submit the mentioned form fields were empty.

The cause relies in the "rul_submit_all" function within the file "wp_login_redirect.php". There, a variable named "$update_or_delete" is compared to a string "Update" or "Delete", which is fine on us/en systems.

Since I was using a localized Wordpress Edition (the german edition that also includes a localized admin section), in my case the caption of the button was "Aktualisieren" instead of "Update".

That caused the comparison to fail and the data not to be stored. I quickly fixed that for me with a simple str_replace.

// ———————————-
// Process the rule changes
// ———————————-

# quick and dirty fix
$update_or_delete = str_replace('Aktualisieren','Update',$update_or_delete);
$update_or_delete = str_replace('Löschen','Delete',$update_or_delete);
$update_or_delete = str_replace('Löschen','Delete',$update_or_delete);


(continue with regular code)

I thought to share this just in case someone else should encounter the same problem.

Cheers

9:57 am
February 6, 2012


Peter

Admin

posts 732

Thanks a lot for pointing this out. I've released version 2.5.2 now, which fixes this bug.

11:00 pm
February 6, 2012


alphabit

Guest

You're welcome. Thanks for the quick update. Already updated my wordpress install :-)

Cheers

Reply to Post

Reply to Topic:
All other users not saved when Wordpress admin is other than english

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 7