From 9f767296787773428c758d05b91632c3f6388438 Mon Sep 17 00:00:00 2001
From: Prasath Nadarajah <n.prasath.002@gmail.com>
Date: Tue, 14 Aug 2012 16:52:40 +0530
Subject: [PATCH] getting user roles
---
push-syndication-server/push-syndication-server.php | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/push-syndication-server/push-syndication-server.php b/push-syndication-server/push-syndication-server.php
index d3826c4..764b916 100644
--- a/push-syndication-server/push-syndication-server.php
+++ b/push-syndication-server/push-syndication-server.php
@@ -260,7 +260,16 @@ class Push_Syndication_Server {
}
public function display_user_roles_selection() {
+ $user_roles = $this->get_user_roles();
+ }
+
+ public function get_user_roles() {
+ global $wp_roles;
+
+ if ( ! isset( $wp_roles ) )
+ $wp_roles = new WP_Roles();
+ return $wp_roles->get_names();
}
public function display_delete_pushed_posts_description() {
--
GitLab