Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




get_bookmarks with multiple orderby params

UserPost

6:27 am
April 28, 2011


pheonixgh

Member

posts 3

1

Your filter on get_bookmarks does not currently account for more than one value in the orderby param.

it took me ages to figure out why my links were showing for admins only despite no restrictions in RS.

turns out of course this filter bails out if request is from admin.

hardway-bookmarks_rs.php  - Line: 134

default:
    $orderby = "link_" . $orderby;

should read

default:
   $orderparams = array();
   foreach ( explode(',', $orderby) as $ordparam )
    $orderparams[] = 'link_' . trim($ordparam);
   $orderby = implode(',', $orderparams);


as per the get_bookmarks() function in wp-includes\bookmarks.php - Line:223.


regards

Greg

Great plugin btw!

7:01 am
May 2, 2011


Kevin

Admin

posts 2503

2

This was fixed in Role Scoper 1.3.34.


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 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