User Switching - Version 1.0.8

Version Description

  • Chinese (Taiwan) and Czech translations.
  • Updated Dutch, Spanish, Hebrew, and German translations.
  • Add an ID attribute to the links on the WordPress login screen, BuddyPress screens, and bbPress screens.

=

Download this release

Release Info

Developer johnbillion
Plugin Icon 128x128 User Switching
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

composer.json CHANGED
@@ -22,11 +22,10 @@
22
  "behat/behat": "~3.0",
23
  "behat/mink-extension": "~2.0",
24
  "behat/mink-goutte-driver": "~1.1",
25
- "johnbillion/wordpress-behat-extension": "0.1.1",
26
- "johnpbloch/wordpress": ">=4.1.0@stable",
27
  "phpunit/phpunit": ">=3.7@stable"
28
  },
29
- "minimum-stability": "dev",
30
  "config": {
31
  "bin-dir": "bin/"
32
  },
22
  "behat/behat": "~3.0",
23
  "behat/mink-extension": "~2.0",
24
  "behat/mink-goutte-driver": "~1.1",
25
+ "johnbillion/wordpress-behat-extension": ">=0.1.3",
26
+ "johnpbloch/wordpress": ">=4.3.0@stable",
27
  "phpunit/phpunit": ">=3.7@stable"
28
  },
 
29
  "config": {
30
  "bin-dir": "bin/"
31
  },
languages/user-switching-cs_CZ.mo ADDED
Binary file
languages/user-switching-cs_CZ.po ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 John Blackbourn
2
+ # This file is distributed under the same license as the User Switching package.
3
+ # Translators:
4
+ # Tomáš Tuček <klokan.soft@gmail.com>, 2015
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: User Switching\n"
8
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
9
+ "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
10
+ "PO-Revision-Date: 2015-07-08 20:29+0000\n"
11
+ "Last-Translator: Tomáš Tuček <klokan.soft@gmail.com>\n"
12
+ "Language-Team: Czech (Czech Republic) (http://www.transifex.com/wp-translations/user-switching/language/cs_CZ/)\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Language: cs_CZ\n"
17
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
18
+
19
+ #: user-switching.php:80
20
+ msgctxt "User Switching title on user profile screen"
21
+ msgid "User Switching"
22
+ msgstr "Přepínání uživatelů"
23
+
24
+ #: user-switching.php:81 user-switching.php:355 user-switching.php:409
25
+ msgid "Switch&nbsp;To"
26
+ msgstr "Přepnout&nbsp;na"
27
+
28
+ #: user-switching.php:151 user-switching.php:162 user-switching.php:172
29
+ msgid "Could not switch users."
30
+ msgstr "Nelze přepnutí uživatele."
31
+
32
+ #: user-switching.php:189
33
+ msgid "Could not switch off."
34
+ msgstr "Nelze vypnout."
35
+
36
+ #: user-switching.php:211 user-switching.php:228
37
+ msgid "Switched to %1$s (%2$s)."
38
+ msgstr "Přepnutím do %1$s (%2$s)."
39
+
40
+ #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
+ #: user-switching.php:329 user-switching.php:370
42
+ msgid "Switch back to %1$s (%2$s)"
43
+ msgstr "Přepněte zpět do %1$s (%2$s)"
44
+
45
+ #: user-switching.php:226
46
+ msgid "Switched back to %1$s (%2$s)."
47
+ msgstr "Přepnut zpět do %1$s (%2$s)."
48
+
49
+ #: user-switching.php:295
50
+ msgid "Switch Off"
51
+ msgstr "Přepínání vypnout"
52
+
53
+ #. Plugin Name of the plugin/theme
54
+ msgid "User Switching"
55
+ msgstr "Přepínání uživatelů"
56
+
57
+ #. Description of the plugin/theme
58
+ msgid "Instant switching between user accounts in WordPress"
59
+ msgstr "Okamžité přepínání mezi uživatelskými účty v WordPress"
languages/user-switching-de_DE.mo CHANGED
Binary file
languages/user-switching-de_DE.po CHANGED
@@ -40,7 +40,7 @@ msgstr "Gewechselt zu %1$s (%2$s)."
40
  #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
  #: user-switching.php:329 user-switching.php:370
42
  msgid "Switch back to %1$s (%2$s)"
43
- msgstr "Wechsele zurück zu %1$s (%2$s)"
44
 
45
  #: user-switching.php:226
46
  msgid "Switched back to %1$s (%2$s)."
40
  #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
  #: user-switching.php:329 user-switching.php:370
42
  msgid "Switch back to %1$s (%2$s)"
43
+ msgstr "Wechsle zurück zu %1$s (%2$s)"
44
 
45
  #: user-switching.php:226
46
  msgid "Switched back to %1$s (%2$s)."
languages/user-switching-es_ES.mo CHANGED
Binary file
languages/user-switching-es_ES.po CHANGED
@@ -1,6 +1,7 @@
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
 
4
  # Enrique Errando <contacto@enriqueerrando.com>, 2014
5
  # Enrique Errando <contacto@enriqueerrando.com>, 2014
6
  msgid ""
@@ -8,9 +9,9 @@ msgstr ""
8
  "Project-Id-Version: User Switching\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
10
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
11
- "PO-Revision-Date: 2014-04-05 13:00+0000\n"
12
- "Last-Translator: Enrique Errando <contacto@enriqueerrando.com>\n"
13
- "Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/user-switching/language/es_ES/)\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -24,7 +25,7 @@ msgstr "User Switching"
24
 
25
  #: user-switching.php:81 user-switching.php:355 user-switching.php:409
26
  msgid "Switch&nbsp;To"
27
- msgstr "Cambiarse&nbsp;a&nbsp;este&nbsp;usuario"
28
 
29
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
30
  msgid "Could not switch users."
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
4
+ # Digital03.net <info@digital03.net>, 2015
5
  # Enrique Errando <contacto@enriqueerrando.com>, 2014
6
  # Enrique Errando <contacto@enriqueerrando.com>, 2014
7
  msgid ""
9
  "Project-Id-Version: User Switching\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
11
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
12
+ "PO-Revision-Date: 2015-05-21 19:05+0000\n"
13
+ "Last-Translator: Digital03.net <info@digital03.net>\n"
14
+ "Language-Team: Spanish (Spain) (http://www.transifex.com/wp-translations/user-switching/language/es_ES/)\n"
15
  "MIME-Version: 1.0\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
25
 
26
  #: user-switching.php:81 user-switching.php:355 user-switching.php:409
27
  msgid "Switch&nbsp;To"
28
+ msgstr "Cambiarse&nbsp;a"
29
 
30
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
31
  msgid "Could not switch users."
languages/user-switching-fa_IR.mo CHANGED
Binary file
languages/user-switching-he_IL.mo CHANGED
Binary file
languages/user-switching-he_IL.po CHANGED
@@ -1,20 +1,18 @@
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: User Switching\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
8
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
9
- "PO-Revision-Date: 2014-03-28 02:00+0000\n"
10
- "Language-Team: Hebrew (Israel) (http://www.transifex.com/projects/p/wp-translations/language/he_IL/)\n"
 
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "PO-Revision-Date: 2014-03-28 01:03+0200\n"
15
- "Last-Translator: Rami Y <r_a_m_i@hotmail.com>\n"
16
- "Language-Team: wp-tricks.co.il <r_a_m_i@hotmail.com>\n"
17
- "X-Generator: Poedit 1.6.4\n"
18
  "Language: he_IL\n"
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
 
@@ -29,7 +27,7 @@ msgstr "החלף למשתמש"
29
 
30
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
31
  msgid "Could not switch users."
32
- msgstr "לא ניתן להחליף משתמש"
33
 
34
  #: user-switching.php:189
35
  msgid "Could not switch off."
@@ -54,8 +52,8 @@ msgstr "ביטול החלפת משתמש"
54
 
55
  #. Plugin Name of the plugin/theme
56
  msgid "User Switching"
57
- msgstr "החלפת משתמש"
58
 
59
  #. Description of the plugin/theme
60
  msgid "Instant switching between user accounts in WordPress"
61
- msgstr "החלפת משתמשים באתרי וורדפרס."
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
4
+ # Seggev Shoresh, 2015
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: User Switching\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
9
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
10
+ "PO-Revision-Date: 2015-05-21 19:05+0000\n"
11
+ "Last-Translator: Seggev Shoresh\n"
12
+ "Language-Team: Hebrew (Israel) (http://www.transifex.com/wp-translations/user-switching/language/he_IL/)\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
 
16
  "Language: he_IL\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
27
 
28
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
29
  msgid "Could not switch users."
30
+ msgstr "לא ניתן להחליף משתמש."
31
 
32
  #: user-switching.php:189
33
  msgid "Could not switch off."
52
 
53
  #. Plugin Name of the plugin/theme
54
  msgid "User Switching"
55
+ msgstr "החלפת משתמשים"
56
 
57
  #. Description of the plugin/theme
58
  msgid "Instant switching between user accounts in WordPress"
59
+ msgstr "החלפה מיידית בין חשבונות משתמשים בוורדפרס."
languages/user-switching-ja.mo CHANGED
Binary file
languages/user-switching-lt_LT.mo CHANGED
Binary file
languages/user-switching-nl_NL.mo CHANGED
Binary file
languages/user-switching-nl_NL.po CHANGED
@@ -1,15 +1,15 @@
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
4
- # Thom, 2014
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: User Switching\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
9
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
10
- "PO-Revision-Date: 2014-09-14 22:11+0000\n"
11
  "Last-Translator: Thom\n"
12
- "Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/user-switching/language/nl_NL/)\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
@@ -19,15 +19,15 @@ msgstr ""
19
  #: user-switching.php:80
20
  msgctxt "User Switching title on user profile screen"
21
  msgid "User Switching"
22
- msgstr "Overschakelen gebruiker"
23
 
24
  #: user-switching.php:81 user-switching.php:355 user-switching.php:409
25
  msgid "Switch&nbsp;To"
26
- msgstr "Overschakelen&nbsp;naar"
27
 
28
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
29
  msgid "Could not switch users."
30
- msgstr "Kon niet schakelen tussen gebruikers."
31
 
32
  #: user-switching.php:189
33
  msgid "Could not switch off."
@@ -35,7 +35,7 @@ msgstr "Kon niet uitschakelen."
35
 
36
  #: user-switching.php:211 user-switching.php:228
37
  msgid "Switched to %1$s (%2$s)."
38
- msgstr "Overgeschakeld naar %1$s (%2$s)."
39
 
40
  #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
  #: user-switching.php:329 user-switching.php:370
@@ -56,4 +56,4 @@ msgstr "User Switching"
56
 
57
  #. Description of the plugin/theme
58
  msgid "Instant switching between user accounts in WordPress"
59
- msgstr "Direct schakelen tussen gebruikersaccounts in WordPress"
1
  # Copyright (C) 2013 John Blackbourn
2
  # This file is distributed under the same license as the User Switching package.
3
  # Translators:
4
+ # Thom, 2014-2015
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: User Switching\n"
8
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
9
  "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
10
+ "PO-Revision-Date: 2015-05-22 18:21+0000\n"
11
  "Last-Translator: Thom\n"
12
+ "Language-Team: Dutch (Netherlands) (http://www.transifex.com/wp-translations/user-switching/language/nl_NL/)\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
19
  #: user-switching.php:80
20
  msgctxt "User Switching title on user profile screen"
21
  msgid "User Switching"
22
+ msgstr "Omschakelen gebruiker"
23
 
24
  #: user-switching.php:81 user-switching.php:355 user-switching.php:409
25
  msgid "Switch&nbsp;To"
26
+ msgstr "Naar&nbsp;omschakelen"
27
 
28
  #: user-switching.php:151 user-switching.php:162 user-switching.php:172
29
  msgid "Could not switch users."
30
+ msgstr "Kon niet omschakelen tussen gebruikers."
31
 
32
  #: user-switching.php:189
33
  msgid "Could not switch off."
35
 
36
  #: user-switching.php:211 user-switching.php:228
37
  msgid "Switched to %1$s (%2$s)."
38
+ msgstr "Omgeschakeld naar %1$s (%2$s)."
39
 
40
  #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
  #: user-switching.php:329 user-switching.php:370
56
 
57
  #. Description of the plugin/theme
58
  msgid "Instant switching between user accounts in WordPress"
59
+ msgstr "Direct omschakelen tussen gebruikersaccounts in WordPress"
languages/user-switching-ru_RU.mo CHANGED
Binary file
languages/user-switching-sk_SK.mo CHANGED
Binary file
languages/user-switching-zh_CN.mo CHANGED
Binary file
languages/user-switching-zh_TW.mo ADDED
Binary file
languages/user-switching-zh_TW.po ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 John Blackbourn
2
+ # This file is distributed under the same license as the User Switching package.
3
+ # Translators:
4
+ # Gordon Yu <g168661@gmail.com>, 2015
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: User Switching\n"
8
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/user-switching\n"
9
+ "POT-Creation-Date: 2013-10-28 23:22:09+00:00\n"
10
+ "PO-Revision-Date: 2015-06-25 02:18+0000\n"
11
+ "Last-Translator: Gordon Yu <g168661@gmail.com>\n"
12
+ "Language-Team: Chinese (Taiwan) (http://www.transifex.com/wp-translations/user-switching/language/zh_TW/)\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ #: user-switching.php:80
20
+ msgctxt "User Switching title on user profile screen"
21
+ msgid "User Switching"
22
+ msgstr "帳號切換"
23
+
24
+ #: user-switching.php:81 user-switching.php:355 user-switching.php:409
25
+ msgid "Switch&nbsp;To"
26
+ msgstr "切換&nbsp;為"
27
+
28
+ #: user-switching.php:151 user-switching.php:162 user-switching.php:172
29
+ msgid "Could not switch users."
30
+ msgstr "無法切換帳號"
31
+
32
+ #: user-switching.php:189
33
+ msgid "Could not switch off."
34
+ msgstr "無法關閉帳號"
35
+
36
+ #: user-switching.php:211 user-switching.php:228
37
+ msgid "Switched to %1$s (%2$s)."
38
+ msgstr "已切換為 %1$s (%2$s)."
39
+
40
+ #: user-switching.php:215 user-switching.php:275 user-switching.php:311
41
+ #: user-switching.php:329 user-switching.php:370
42
+ msgid "Switch back to %1$s (%2$s)"
43
+ msgstr "切換回 %1$s (%2$s)"
44
+
45
+ #: user-switching.php:226
46
+ msgid "Switched back to %1$s (%2$s)."
47
+ msgstr "已切換回 %1$s (%2$s)."
48
+
49
+ #: user-switching.php:295
50
+ msgid "Switch Off"
51
+ msgstr "關閉"
52
+
53
+ #. Plugin Name of the plugin/theme
54
+ msgid "User Switching"
55
+ msgstr "User Switching"
56
+
57
+ #. Description of the plugin/theme
58
+ msgid "Instant switching between user accounts in WordPress"
59
+ msgstr "即時在各個 WordPress 使用者帳號間切換"
readme.txt CHANGED
@@ -1,146 +1,156 @@
1
- === User Switching ===
2
-
3
- Contributors: johnbillion
4
- Tags: users, profiles, user switching, fast user switching, multisite, buddypress, bbpress, become, user management, developer
5
- Requires at least: 3.1
6
- Tested up to: 4.3
7
- Stable tag: 1.0.7
8
- License: GPL v2 or later
9
-
10
- Instant switching between user accounts in WordPress.
11
-
12
- == Description ==
13
-
14
- This plugin allows you to quickly swap between user accounts in WordPress at the click of a button. You'll be instantly logged out and logged in as your desired user. This is handy for test environments where you regularly log out and in between different accounts, or for administrators who need to switch between multiple accounts.
15
-
16
- = Features =
17
-
18
- * Switch user: Instantly switch to any user account from the *Users* screen.
19
- * Switch back: Instantly switch back to your originating account.
20
- * Switch off: Log out of your account but retain the ability to instantly switch back in again.
21
- * It's completely secure (see the *Security* section below).
22
- * Compatible with WordPress, WordPress Multisite, BuddyPress and bbPress.
23
-
24
- = Security =
25
-
26
- * Only users with the ability to edit other users can switch user accounts. By default this is only Administrators on single site installs, and Super Admins on Multisite installs.
27
- * Passwords are not (and cannot be) revealed.
28
- * Uses the cookie authentication system in WordPress when remembering the account(s) you've switched from and when switching back.
29
- * Implements the nonce security system in WordPress, meaning only those who intend to switch users can switch.
30
- * Full support for administration over SSL (if applicable).
31
-
32
- = Usage =
33
-
34
- 1. Visit the *Users* menu in WordPress and you'll see a *Switch To* link in the list of action links for each user.
35
- 2. Click this and you will immediately switch into that user account.
36
- 3. You can switch back to your originating account via the *Switch back* link on each dashboard screen or in your profile menu in the WordPress toolbar.
37
-
38
- See the [FAQ](https://wordpress.org/plugins/user-switching/faq/) for information about the *Switch Off* feature.
39
-
40
- = Translations Included =
41
-
42
- * العربية (Arabic)
43
- * Azərbaycan dili (Azerbaijani)
44
- * Bosanski (Bosnian)
45
- * Български (Bulgarian)
46
- * 中文 (Chinese Simplified)
47
- * Hrvatski (Croatian)
48
- * Dansk (Danish)
49
- * Nederlands (Dutch)
50
- * Suomi (Finnish)
51
- * Français (French)
52
- * Deutsch (German)
53
- * Ελληνικά (Greek)
54
- * עִבְרִית (Hebrew)
55
- * Bahasa Indonesia (Indonesian)
56
- * Italiano (Italian)
57
- * 日本語 (Japanese)
58
- * Lietuvių kalba (Lithuanian)
59
- * Norsk bokmål (Norwegian)
60
- * فارسی (Persian)
61
- * Polski (Polish)
62
- * Português do Brasil (Brazilian Portuguese)
63
- * Română (Romanian)
64
- * Русский (Russian)
65
- * Slovenčina (Slovak)
66
- * Español (Spanish)
67
- * Türkçe (Turkish)
68
-
69
- Thanks to translations by Hassan Hisham, Tunghsiao Liu, Francois-Xavier Bénard, Ralph Stenzel, Rami Y, Yusuke Hayasaki, Tommixoft, Amin Ab, Bartosz Arendt, Raphael Mendonça, R J, Max Samael, Eko Ikhyar, Marcelo Pedra, Abdullah Pazarbasi, ArianServ, SilverXp, Evi Giannakou, Petya Raykovska, Martin Sauter, Yaser Tallo, Enrique Errando, Sami Keijonen, Kalina Michocka, Alessandro Curci, Alessandro Tesoro, Ante Sepic, Per Søderlind, Mushviq Abdulla, Kenan Dervisevic, and Joachim Jensen!
70
-
71
- == Screenshots ==
72
-
73
- 1. ![The *Switch To* link on the Users screen](https://raw.github.com/johnbillion/user-switching/master/assets-wp-repo/screenshot-1.png)
74
- 2. ![The *Switch To* link on a user's profile](https://raw.github.com/johnbillion/user-switching/master/assets-wp-repo/screenshot-2.png)
75
-
76
- == Installation ==
77
-
78
- If you have the [WordPress Developer plugin](https://wordpress.org/plugins/developer/) installed then User Switching is a one-click install from the Tools -> Developer screen.
79
-
80
- Alternatively, you can install this plugin directly from your WordPress dashboard:
81
-
82
- 1. Go to the *Plugins* menu and click *Add New*.
83
- 2. Search for *User Switching*.
84
- 3. Click *Install Now* next to the *User Switching* plugin.
85
- 4. Activate the plugin.
86
-
87
- == Frequently Asked Questions ==
88
-
89
- = What does "Switch off" mean? =
90
-
91
- Switching off logs you out of your account but retains your user ID in an authentication cookie so you can switch straight back without having to log in again manually. It's akin to switching to no user, and being able to switch back.
92
-
93
- The *Switch Off* link can be found in your profile menu in the WordPress toolbar. Once you've switched off you'll see a *Switch back* link in the footer of your site.
94
-
95
- = Does this plugin work with WordPress Multisite? =
96
-
97
- Yes, and you'll also be able to switch users from the Users screen in Network Admin.
98
-
99
- = Does this plugin work with BuddyPress? =
100
-
101
- Yes, and you'll also be able to switch users from member profile screens and the member listing screen.
102
-
103
- = Does this plugin work with bbPress? =
104
-
105
- Yes, and you'll also be able to switch users from member profile screens.
106
-
107
- = Does this plugin work if my site is using a two-factor authentication plugin? =
108
-
109
- Yes, mostly.
110
-
111
- One exception I'm aware of is [Duo Security](https://wordpress.org/plugins/duo-wordpress/). If you're using this plugin, you should install the [User Switching for Duo Security](https://github.com/johnbillion/user-switching-duo-security) add-on plugin which will prevent the two-factor authentication prompt from appearing when you switch between users.
112
-
113
- = Does this work as a mu-plugin? =
114
-
115
- Yes, but you'll need to install `user-switching.php` into the root of your `mu-plugins` directory, not in the `user-switching` subdirectory. This is a limitation of WordPress.
116
-
117
- = What capability does a user need in order to switch accounts? =
118
-
119
- A user needs the `edit_users` capability in order to switch user accounts. By default only Administrators have this capability, and with Multisite enabled only Super Admins have this capability.
120
-
121
- = Can regular admins on Multisite installs switch accounts? =
122
-
123
- No. This can be enabled though by installing the [User Switching for Regular Admins](https://github.com/johnbillion/user-switching-for-regular-admins) plugin.
124
-
125
- = Are any plugin actions called when a user switches account? =
126
-
127
- Yes. When a user switches to another account, the `switch_to_user` hook is called with the new and old user IDs passed as parameters.
128
-
129
- When a user switches back to their original account, the `switch_back_user` hook is called with the new (original) and old user IDs passed as parameters. Note that the old user ID can be boolean false if the user is switching back after they've been switched off.
130
-
131
- When a user switches off, the `switch_off_user` hook is called with the old user ID as a parameter.
132
-
133
- See the plugin source code for complete hook documentation.
 
 
134
 
135
  == Upgrade Notice ==
136
 
137
- = 1.0.7 =
138
 
139
- * Azerbaijani, Danish, and Bosnian translations.
140
- * Add back the 'User Switching' heading on the user profile screen, and correct the values passed to the `switch_back_user` hook when a user has been switched off.
 
141
 
142
  == Changelog ==
143
 
 
 
 
 
 
 
 
144
  = 1.0.7 =
145
 
146
  * Azerbaijani, Danish, and Bosnian translations.
1
+ === User Switching ===
2
+
3
+ Contributors: johnbillion
4
+ Tags: users, profiles, user switching, fast user switching, multisite, buddypress, bbpress, become, user management, developer
5
+ Requires at least: 3.1
6
+ Tested up to: 4.3
7
+ Stable tag: 1.0.8
8
+ License: GPL v2 or later
9
+
10
+ Instant switching between user accounts in WordPress.
11
+
12
+ == Description ==
13
+
14
+ This plugin allows you to quickly swap between user accounts in WordPress at the click of a button. You'll be instantly logged out and logged in as your desired user. This is handy for test environments where you regularly log out and in between different accounts, or for administrators who need to switch between multiple accounts.
15
+
16
+ = Features =
17
+
18
+ * Switch user: Instantly switch to any user account from the *Users* screen.
19
+ * Switch back: Instantly switch back to your originating account.
20
+ * Switch off: Log out of your account but retain the ability to instantly switch back in again.
21
+ * It's completely secure (see the *Security* section below).
22
+ * Compatible with WordPress, WordPress Multisite, BuddyPress and bbPress.
23
+
24
+ = Security =
25
+
26
+ * Only users with the ability to edit other users can switch user accounts. By default this is only Administrators on single site installs, and Super Admins on Multisite installs.
27
+ * Passwords are not (and cannot be) revealed.
28
+ * Uses the cookie authentication system in WordPress when remembering the account(s) you've switched from and when switching back.
29
+ * Implements the nonce security system in WordPress, meaning only those who intend to switch users can switch.
30
+ * Full support for administration over SSL (if applicable).
31
+
32
+ = Usage =
33
+
34
+ 1. Visit the *Users* menu in WordPress and you'll see a *Switch To* link in the list of action links for each user.
35
+ 2. Click this and you will immediately switch into that user account.
36
+ 3. You can switch back to your originating account via the *Switch back* link on each dashboard screen or in your profile menu in the WordPress toolbar.
37
+
38
+ See the [FAQ](https://wordpress.org/plugins/user-switching/faq/) for information about the *Switch Off* feature.
39
+
40
+ = Translations Available =
41
+
42
+ * العربية
43
+ * Azərbaycan dili
44
+ * Bosanski
45
+ * Български
46
+ * Català
47
+ * 中文
48
+ * 繁體中文
49
+ * Hrvatski
50
+ * Čeština‎
51
+ * Dansk
52
+ * Nederlands
53
+ * Suomi
54
+ * Français
55
+ * Deutsch
56
+ * Ελληνικά
57
+ * עִבְרִית
58
+ * Bahasa Indonesia
59
+ * Italiano
60
+ * 日本語
61
+ * Lietuvių kalba
62
+ * Norsk bokmål
63
+ * فارسی
64
+ * Polski
65
+ * Português do Brasil
66
+ * Română
67
+ * Русский
68
+ * Slovenčina
69
+ * Español
70
+ * Türkçe
71
+ * Українська
72
+
73
+ == Screenshots ==
74
+
75
+ 1. ![The *Switch To* link on the Users screen](https://raw.github.com/johnbillion/user-switching/master/assets-wp-repo/screenshot-1.png)
76
+ 2. ![The *Switch To* link on a user's profile](https://raw.github.com/johnbillion/user-switching/master/assets-wp-repo/screenshot-2.png)
77
+
78
+ == Installation ==
79
+
80
+ If you have the [WordPress Developer plugin](https://wordpress.org/plugins/developer/) installed then User Switching is a one-click install from the Tools -> Developer screen.
81
+
82
+ Alternatively, you can install this plugin directly from your WordPress dashboard:
83
+
84
+ 1. Go to the *Plugins* menu and click *Add New*.
85
+ 2. Search for *User Switching*.
86
+ 3. Click *Install Now* next to the *User Switching* plugin.
87
+ 4. Activate the plugin.
88
+
89
+ == Frequently Asked Questions ==
90
+
91
+ = What does "Switch off" mean? =
92
+
93
+ Switching off logs you out of your account but retains your user ID in an authentication cookie so you can switch straight back without having to log in again manually. It's akin to switching to no user, and being able to switch back.
94
+
95
+ The *Switch Off* link can be found in your profile menu in the WordPress toolbar. Once you've switched off you'll see a *Switch back* link in the footer of your site.
96
+
97
+ = Does this plugin work with WordPress Multisite? =
98
+
99
+ Yes, and you'll also be able to switch users from the Users screen in Network Admin.
100
+
101
+ = Does this plugin work with BuddyPress? =
102
+
103
+ Yes, and you'll also be able to switch users from member profile screens and the member listing screen.
104
+
105
+ = Does this plugin work with bbPress? =
106
+
107
+ Yes, and you'll also be able to switch users from member profile screens.
108
+
109
+ = Does this plugin work if my site is using a two-factor authentication plugin? =
110
+
111
+ Yes, mostly.
112
+
113
+ One exception I'm aware of is [Duo Security](https://wordpress.org/plugins/duo-wordpress/). If you're using this plugin, you should install the [User Switching for Duo Security](https://github.com/johnbillion/user-switching-duo-security) add-on plugin which will prevent the two-factor authentication prompt from appearing when you switch between users.
114
+
115
+ = Does this work as a mu-plugin? =
116
+
117
+ Yes, but you'll need to install `user-switching.php` into the root of your `mu-plugins` directory, not in the `user-switching` subdirectory. This is a limitation of WordPress.
118
+
119
+ = What capability does a user need in order to switch accounts? =
120
+
121
+ A user needs the `edit_users` capability in order to switch user accounts. By default only Administrators have this capability, and with Multisite enabled only Super Admins have this capability.
122
+
123
+ = Can regular admins on Multisite installs switch accounts? =
124
+
125
+ No. This can be enabled though by installing the [User Switching for Regular Admins](https://github.com/johnbillion/user-switching-for-regular-admins) plugin.
126
+
127
+ = Are any plugin actions called when a user switches account? =
128
+
129
+ Yes. When a user switches to another account, the `switch_to_user` hook is called with the new and old user IDs passed as parameters.
130
+
131
+ When a user switches back to their original account, the `switch_back_user` hook is called with the new (original) and old user IDs passed as parameters. Note that the old user ID can be boolean false if the user is switching back after they've been switched off.
132
+
133
+ When a user switches off, the `switch_off_user` hook is called with the old user ID as a parameter.
134
+
135
+ See the plugin source code for complete hook documentation.
136
 
137
  == Upgrade Notice ==
138
 
139
+ = 1.0.8 =
140
 
141
+ * Chinese (Taiwan) and Czech translations.
142
+ * Updated Dutch, Spanish, Hebrew, and German translations.
143
+ * Add an ID attribute to the links on the WordPress login screen, BuddyPress screens, and bbPress screens.
144
 
145
  == Changelog ==
146
 
147
+ = 1.0.8 =
148
+
149
+ * Chinese (Taiwan) and Czech translations.
150
+ * Updated Dutch, Spanish, Hebrew, and German translations.
151
+ * Add an ID attribute to the links that User Switching outputs on the WordPress login screen, BuddyPress screens, and bbPress screens.
152
+ * Avoid a deprecated argument notice when the `user-actions` admin toolbar node has been removed.
153
+
154
  = 1.0.7 =
155
 
156
  * Azerbaijani, Danish, and Bosnian translations.
user-switching.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: User Switching
4
  Description: Instant switching between user accounts in WordPress
5
- Version: 1.0.7
6
  Plugin URI: https://johnblackbourn.com/wordpress-plugin-user-switching/
7
  Author: John Blackbourn
8
  Author URI: https://johnblackbourn.com/
@@ -381,8 +381,12 @@ class user_switching {
381
  return;
382
  }
383
 
384
- if ( method_exists( $wp_admin_bar, 'get_node' ) && $wp_admin_bar->get_node( 'user-actions' ) ) {
385
- $parent = 'user-actions';
 
 
 
 
386
  } else if ( get_option( 'show_avatars' ) ) {
387
  $parent = 'my-account-with-avatar';
388
  } else {
@@ -468,7 +472,7 @@ class user_switching {
468
  'redirect_to' => urlencode( $_REQUEST['redirect_to'] ),
469
  ), $url );
470
  }
471
- $message .= '<p class="message"><span class="dashicons dashicons-admin-users" style="color:#56c234"></span> <a href="' . esc_url( $url ) . '">' . esc_html( $link ) . '</a></p>';
472
  }
473
 
474
  return $message;
@@ -531,6 +535,7 @@ class user_switching {
531
  'component' => $component,
532
  'link_href' => esc_url( $link ),
533
  'link_text' => esc_html__( 'Switch&nbsp;To', 'user-switching' ),
 
534
  ) );
535
  // @codingStandardsIgnoreEnd
536
 
@@ -553,7 +558,7 @@ class user_switching {
553
  ), $link );
554
 
555
  ?>
556
- <ul>
557
  <li><a href="<?php echo esc_url( $link ); ?>"><?php esc_html_e( 'Switch&nbsp;To', 'user-switching' ); ?></a></li>
558
  </ul>
559
  <?php
2
  /*
3
  Plugin Name: User Switching
4
  Description: Instant switching between user accounts in WordPress
5
+ Version: 1.0.8
6
  Plugin URI: https://johnblackbourn.com/wordpress-plugin-user-switching/
7
  Author: John Blackbourn
8
  Author URI: https://johnblackbourn.com/
381
  return;
382
  }
383
 
384
+ if ( method_exists( $wp_admin_bar, 'get_node' ) ) {
385
+ if ( $wp_admin_bar->get_node( 'user-actions' ) ) {
386
+ $parent = 'user-actions';
387
+ } else {
388
+ return;
389
+ }
390
  } else if ( get_option( 'show_avatars' ) ) {
391
  $parent = 'my-account-with-avatar';
392
  } else {
472
  'redirect_to' => urlencode( $_REQUEST['redirect_to'] ),
473
  ), $url );
474
  }
475
+ $message .= '<p class="message" id="user_switching_switch_on"><span class="dashicons dashicons-admin-users" style="color:#56c234"></span> <a href="' . esc_url( $url ) . '">' . esc_html( $link ) . '</a></p>';
476
  }
477
 
478
  return $message;
535
  'component' => $component,
536
  'link_href' => esc_url( $link ),
537
  'link_text' => esc_html__( 'Switch&nbsp;To', 'user-switching' ),
538
+ 'wrapper_id' => 'user_switching_switch_to',
539
  ) );
540
  // @codingStandardsIgnoreEnd
541
 
558
  ), $link );
559
 
560
  ?>
561
+ <ul id="user_switching_switch_to">
562
  <li><a href="<?php echo esc_url( $link ); ?>"><?php esc_html_e( 'Switch&nbsp;To', 'user-switching' ); ?></a></li>
563
  </ul>
564
  <?php