using [is login] crashed login status of user
-
Hi,
I try to build page which is showing some of users of my site. I added some of custom fileds to user profile (using WP CRM plugin) and put on site:
https://zespol.oop.org.pl/techniczna/
this shortcode:
[users orderby=id] [block style='float:left; margin-right:10px; margin-top:10px;'][user avatar size=200][/block] <h4>[user]</h4> <strong>Rola w OOP</strong>: [user twoja_rola_w_oop_inne] <strong>Profesja</strong>: [user profesja] [if user_field=strona_www_firmy]<a href="[user strona_www_firmy]" target="_blank">[user company]</a>[else][/if][if user_field=profil_facebook] | <a href="[user profil_facebook]" target="_blank">Facebook</a>[else][/if][if user_field=profil_linkedin] | <a href="[user profil_linkedin]" target="_blank">LinkedIn</a>[else][/if][if user_field=profil_google] | <a href="[user profil_google]" target="_blank">Google+</a>[else][/if] [user description format=true] <strong>Kontakt: </strong>[is login]telefon: [user phone_number] | mail: (user email)[else](widoczne tylko dla?zalogowanych)[/is] <hr /> [/users]
(in this case I dont use user mail shortcode to not start spam…)
And in chrome incognito mode I see last part of code is causing not logged user see page as logged – as a last person from the list from users loop (in this case justyna88). But this bug logs’s not an anonymous user really, only show them restricted data.
Its causing too, when Im login as me (Jakub) in sidebar I see my profile as this last user from list.
So, problematic is code:
[is login]telefon: [user phone_number] | mail: [user email][else](widoczne tylko dla?zalogowanych)[/is]
- The topic ‘using [is login] crashed login status of user’ is closed to new replies.