Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




is_restricted_rs incorrect from home page

UserPost

11:59 pm
March 9, 2010


arthurmsmith

New Member

posts 1

1

The following code works find on all pages except "home":


$user = wp_get_current_user();

if ( ! is_restricted_rs(669) )
{ $my_data="false" }

else { $my_data="true" }


This is being used in plugin that is exercised via embedded text in a a widget via Widget Logic to evaluate.  When a valid user of page 669 is evaulated from any other page, the value of $my_data is "true", but when evaluating on the Home page, the value of $my_data is false.

Help?


Thanks!


Art Smith

art@theconservativereader.com

9:20 pm
March 11, 2010


Kevin

Admin

posts 2503

2

What happens if you edit role-scoper/template-interceptor_rs.php as follows:

change:

$listed_ids = ( is_single() || is_page() ) ? array( $id => true ) : array();

to:

$listed_ids = ( is_single() || is_page() || empty($scoper->listed_ids[$src_name]) ) ? array( $id => true ) : array();

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin