Skip to:

My plugin is broken BuddyPress users activation function

  • Nik_vr


    Hello! In my site I use plugin to sanitize posts/pages URL’s. Code of plugin is simple (all no-latin symbols has changed to latin):

    function the_russian_url($title)
     $cyr2lat_table = array(
    	" "=>"-","."=>"",'"'=>"-","""=>"-",'"'=>"-",
     global $wpdb;
     //оставляем только латиницу, цифры и тире
     //Дополнение — очищает слаги от вхождения ненужных в URL символов.
     //echo '<!--URL: '.$title.' -->';
     //if ($title!='')
     return str_replace("--","-",preg_replace("~[^A-Za-z0-9-]~","-",strtr($title,$cyr2lat_table)));
    add_action('sanitize_title', 'the_russian_url');

    If I use this (very old) plugin in site with installed BuddyPress, in BuddyPress has not work new users activation function. If user click to link in activation email, or manual type activation code on activation page, it get message (Wrong activation code).

    If i disable my plugin, activation work good.

    Please, help my change my plugin. I need for both plug-in should work simultaneously.

    PS. Sorry for my bad English 🙂

  • You must be logged in to reply to this topic.
Skip to toolbar