Changeset 398346
- Timestamp:
- 06/17/2011 12:19:23 PM (15 years ago)
- Location:
- capa
- Files:
-
- 3 deleted
- 4 edited
- 1 copied
-
tags/0.5.8.1 (copied) (copied from capa/trunk)
-
tags/0.5.8.1/capa.php (modified) (5 diffs)
-
tags/0.5.8.1/lang/capa-fr_FR.po (deleted)
-
tags/0.5.8.1/lang/capa-ko_KR.mo (deleted)
-
tags/0.5.8.1/lang/capa-ko_KR.po (deleted)
-
tags/0.5.8.1/readme.txt (modified) (2 diffs)
-
trunk/capa.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
capa/tags/0.5.8.1/capa.php
r391586 r398346 4 4 Plugin URI: http://www.smatern.de/category/coding/capa/ 5 5 Description: CaPa provides Category & Pages protection on a roles & user basis. 6 Version: 0.5.8 6 Version: 0.5.8.1 7 7 Author: S. Matern 8 8 Author URI: http://www.smatern.de … … 318 318 * @return bool 319 319 */ 320 function user_can_access($val_id, $user,$kind,$parent_id=''){320 function user_can_access($val_id, $user, $kind, $parent_id=''){ 321 321 global $post; 322 322 … … 339 339 if (empty($user_access_page_check)){ 340 340 // Group Settings 341 $tmp_caps = implode('', array_keys($user->caps));341 $tmp_caps = implode('', array_keys($user->caps)); 342 342 $user_access_page_check = get_option("capa_protect_pag_role_{$tmp_caps}"); 343 343 } … … 719 719 720 720 if(is_array($params)){ 721 $_posts = FALSE; 722 721 723 foreach($params as $obj){ 722 724 $_posts[] = $obj->comment_post_ID; … … 725 727 726 728 $params = array(); 727 foreach($_posts as $obj){ 728 if(!capa_protect::post_should_be_hidden($obj)){ 729 $params = $params + $_comments[$obj]; 729 730 if(is_array($_posts)){ 731 foreach($_posts as $obj){ 732 if(!capa_protect::post_should_be_hidden($obj)){ 733 $params = $params + $_comments[$obj]; 734 } 735 } 730 736 } 731 }732 737 } 733 738 -
capa/tags/0.5.8.1/readme.txt
r391586 r398346 5 5 Requires at least: 2.7.1 6 6 Tested up to: 3.1.3 7 Stable tag: 0.5.8 7 Stable tag: 0.5.8.1 8 8 9 9 Protects Categories, Pages and Posts for specific users & anonymous visitor … … 61 61 62 62 == Changelog == 63 64 = v0.5.8.1 = 65 * Bugfix "Invalid argument supplied for foreach" 63 66 64 67 = v0.5.8 = -
capa/trunk/capa.php
r391586 r398346 4 4 Plugin URI: http://www.smatern.de/category/coding/capa/ 5 5 Description: CaPa provides Category & Pages protection on a roles & user basis. 6 Version: 0.5.8 6 Version: 0.5.8.1 7 7 Author: S. Matern 8 8 Author URI: http://www.smatern.de … … 318 318 * @return bool 319 319 */ 320 function user_can_access($val_id, $user,$kind,$parent_id=''){320 function user_can_access($val_id, $user, $kind, $parent_id=''){ 321 321 global $post; 322 322 … … 339 339 if (empty($user_access_page_check)){ 340 340 // Group Settings 341 $tmp_caps = implode('', array_keys($user->caps));341 $tmp_caps = implode('', array_keys($user->caps)); 342 342 $user_access_page_check = get_option("capa_protect_pag_role_{$tmp_caps}"); 343 343 } … … 719 719 720 720 if(is_array($params)){ 721 $_posts = FALSE; 722 721 723 foreach($params as $obj){ 722 724 $_posts[] = $obj->comment_post_ID; … … 725 727 726 728 $params = array(); 727 foreach($_posts as $obj){ 728 if(!capa_protect::post_should_be_hidden($obj)){ 729 $params = $params + $_comments[$obj]; 729 730 if(is_array($_posts)){ 731 foreach($_posts as $obj){ 732 if(!capa_protect::post_should_be_hidden($obj)){ 733 $params = $params + $_comments[$obj]; 734 } 735 } 730 736 } 731 }732 737 } 733 738 -
capa/trunk/readme.txt
r391586 r398346 5 5 Requires at least: 2.7.1 6 6 Tested up to: 3.1.3 7 Stable tag: 0.5.8 7 Stable tag: 0.5.8.1 8 8 9 9 Protects Categories, Pages and Posts for specific users & anonymous visitor … … 61 61 62 62 == Changelog == 63 64 = v0.5.8.1 = 65 * Bugfix "Invalid argument supplied for foreach" 63 66 64 67 = v0.5.8 =
Note: See TracChangeset
for help on using the changeset viewer.