{"push_id":564775420,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f086e336ffdb03142876fe15f54081dbfc235a3e","before":"8a596f3ce0114fbc49874f9a393f85e66513c7ec","commits":[{"sha":"f086e336ffdb03142876fe15f54081dbfc235a3e","author":{"email":"a20e9ba3cc5c580e02007dce23ea24ee0821514d@b8457f37-d9ea-0310-8a92-e5e31aec5664","name":"whiteshadow"},"message":"Add a workaround for a bug in W3 Total Cache 0.9.4.1 that caused role menu permissions to stop working properly if the CDN or New Relic modules were activated.\n\nW3 Total Cache retrieves the current user's role by calling array_shift($user->roles). This *removes* the first role name from the \"roles\" array. As a result, other plugins (e.g. this one) that try to get the role only see an empty array. \n\nThe bug was reported to W3 Total Cache devs about 4 months ago and has not been fixed yet.\n\nWorkaround: cache user roles before W3 Total Cache can corrupt the list, then use the cache instead of the actual current user object.\n\ngit-svn-id: https://plugins.svn.wordpress.org/admin-menu-editor/trunk@1082211 b8457f37-d9ea-0310-8a92-e5e31aec5664","distinct":true,"url":"https://api.github.com/repos/wp-plugins/admin-menu-editor/commits/f086e336ffdb03142876fe15f54081dbfc235a3e"}]}