Changeset 921483
- Timestamp:
- 05/27/2014 07:13:29 AM (12 years ago)
- Location:
- restrict-partial-content
- Files:
-
- 3 edited
- 2 copied
-
tags/0.2 (copied) (copied from restrict-partial-content/trunk)
-
tags/0.2/readme.txt (copied) (copied from restrict-partial-content/trunk/readme.txt) (3 diffs)
-
tags/0.2/restrict-partial-content.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/restrict-partial-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restrict-partial-content/tags/0.2/readme.txt
r916101 r921483 4 4 Requires at least: 3.9.1 5 5 Tested up to: 3.9.1 6 Stable tag: 0. 16 Stable tag: 0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. 10 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. You can use the shortcode provided to show some of the content and restrict the remaining content to specific users or user types(via roles). 11 11 12 12 == Description == 13 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. You can use the shortcode provided to show some of the content and restrict the remaining content to specific users or user types(via roles).14 15 13 Typical use case would be to restrict access to a bit of content to users unless they are logged. Can help you improve your subscription rates. 16 14 … … 21 19 </ol> 22 20 23 Details and examples about using the plugin are available at <a href="http://speedsoftsol.com/restrict-partial-content" target="_blank">speedsoftsol.com/ restrict-partial-content</a>21 Details and examples about using the plugin are available at <a href="http://speedsoftsol.com/restrict-partial-content" target="_blank">speedsoftsol.com/simple-faq-plugin/</a> 24 22 25 23 == Installation == … … 42 40 = 0.1 = 43 41 Initial launch 42 43 = 0.2 = 44 Improve check when user is not logged in -
restrict-partial-content/tags/0.2/restrict-partial-content.php
r915456 r921483 29 29 $user_list = explode (",", $allow_user); 30 30 $user_list_trimmed = array_map('trim', $user_list); 31 if ( in_array($user_id, $user_list_trimmed)) {31 if ($user_id != NULL && in_array($user_id, $user_list_trimmed)) { 32 32 $restrict = 0; 33 33 } … … 36 36 $role_list = explode (",", $allow_role); 37 37 $role_list_trimmed = array_map('trim', $role_list); 38 if ( in_array ($user_role, $role_list_trimmed)) {38 if ($user_id != NULL && in_array ($user_role, $role_list_trimmed)) { 39 39 $restrict = 0; 40 40 } -
restrict-partial-content/trunk/readme.txt
r916101 r921483 4 4 Requires at least: 3.9.1 5 5 Tested up to: 3.9.1 6 Stable tag: 0. 16 Stable tag: 0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. 10 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. You can use the shortcode provided to show some of the content and restrict the remaining content to specific users or user types(via roles). 11 11 12 12 == Description == 13 This is a simple plugin to allow you to restrict the access to specific portion of the page/post. You can use the shortcode provided to show some of the content and restrict the remaining content to specific users or user types(via roles).14 15 13 Typical use case would be to restrict access to a bit of content to users unless they are logged. Can help you improve your subscription rates. 16 14 … … 21 19 </ol> 22 20 23 Details and examples about using the plugin are available at <a href="http://speedsoftsol.com/restrict-partial-content" target="_blank">speedsoftsol.com/ restrict-partial-content</a>21 Details and examples about using the plugin are available at <a href="http://speedsoftsol.com/restrict-partial-content" target="_blank">speedsoftsol.com/simple-faq-plugin/</a> 24 22 25 23 == Installation == … … 42 40 = 0.1 = 43 41 Initial launch 42 43 = 0.2 = 44 Improve check when user is not logged in -
restrict-partial-content/trunk/restrict-partial-content.php
r915456 r921483 29 29 $user_list = explode (",", $allow_user); 30 30 $user_list_trimmed = array_map('trim', $user_list); 31 if ( in_array($user_id, $user_list_trimmed)) {31 if ($user_id != NULL && in_array($user_id, $user_list_trimmed)) { 32 32 $restrict = 0; 33 33 } … … 36 36 $role_list = explode (",", $allow_role); 37 37 $role_list_trimmed = array_map('trim', $role_list); 38 if ( in_array ($user_role, $role_list_trimmed)) {38 if ($user_id != NULL && in_array ($user_role, $role_list_trimmed)) { 39 39 $restrict = 0; 40 40 }
Note: See TracChangeset
for help on using the changeset viewer.