mlindgren
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Donation Thermometer] Theme CompatibilityThanks, just want to make sure things don’t go AWOL on me again.
Forum: Fixing WordPress
In reply to: Need help with Warning:array_keys and Warning:array_shiftLooking at the php file it is leading me to this is what I see:
$themename = 'Theme'; // used on the title of the custom admin page $req_cap_to_edit = 'read'; // the user capability that is required to access the CheezCap settings page function cc_get_user_roles(){ global $wp_roles; $return_roles = array(); if(!empty($wp_roles)){ $roles = $wp_roles->roles; foreach ($roles as $role){ <**Line 19**> $max_cap = array_shift(array_keys($role['capabilities'])); $return_roles[$max_cap] = $role['name']; } } return $return_roles; }[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
Line 19 is the area bolded. I’ve tried updating the theme and it did not change anything. Is there anything wrong with that particular line of code that I can change? What would I need to do to not lose my page and reinstalling WP? Or should I just call godaddy and see if they can roll it back for me?
Forum: Fixing WordPress
In reply to: Need help with Warning:array_keys and Warning:array_shiftIf it helps to see, my school’s website is located at:
luthernorthcollegeprep.org
Viewing 3 replies - 1 through 3 (of 3 total)