Breaks if no user_id 1
-
The plugin is hardcoded to return user_id 1. Would be better to grab the first admin user from the database instead:
return $wpdb->get_var("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%administrator%' LIMIT 1");
- The topic ‘Breaks if no user_id 1’ is closed to new replies.