PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 260917
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v260917
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
← All changes | src/includes/classes/access-cap-times.inc.php +3 -3 260805260917 View file →
@@ -60,9 +60,9 @@
60 60
61 61 if(strpos($meta_key, 'capabilities') === FALSE || $meta_key !== $wpdb->get_blog_prefix().'capabilities')
62 62 return; // Not updating caps.
63 63
64 - $user_id = (integer)$object_id;
64 + $user_id = (int)$object_id;
65 65 $user = new WP_User($user_id);
66 66 if(!$user->ID || !$user->exists())
67 67 return; // Not a valid user.
68 68
@@ -108,9 +108,9 @@
108 108
109 109 if(strpos($meta_key, 'capabilities') === FALSE || $meta_key !== $wpdb->get_blog_prefix().'capabilities')
110 110 return; // Not updating caps.
111 111
112 - $user_id = (integer)$object_id;
112 + $user_id = (int)$object_id;
113 113 $user = new WP_User($user_id);
114 114 if(!$user->ID || !$user->exists())
115 115 return; // Not a valid user.
116 116
@@ -208,9 +208,9 @@
208 208 */
209 209 public static function get_access_cap_times($user_id, $access_caps = array())
210 210 {
211 211 $ac_times = array();
212 - if(($user_id = (integer)$user_id))
212 + if(($user_id = (int)$user_id))
213 213 {
214 214 $ac_times = get_user_option('s2member_access_cap_times', $user_id);
215 215 if(!is_array($ac_times)) $ac_times = array();
216 216