Open lenasterg opened 1 year ago
Thanks so much for working on this!
Unfortunately, I just merged a PR last week that does some of these changes: https://github.com/boonebgorges/bp-groupblog/pull/52. So the base branch is 1.9.x.
Could you say more about why you're changing the argument order of these functions? I'm a bit nervous that third-party plugins (such as ones that I may have written for clients - it's hard to remember everything I've done in the last 10+ years!) could be using the old function signature.
Hi. @boonebgorges. I changed the argument order in order to make the functions compatible with PHP 8+ https://php.watch/versions/8.0/deprecate-required-param-after-optional
Ah, I see. In that case, it's better to provide default values for the later parameters:
function groupblog_edit_base_settings( $groupblog_enable_blog, $groupblog_silent_add = NULL, $groupblog_default_admin_role = '', $groupblog_default_mod_role = '', $groupblog_default_member_role = '', $page_template_layout = '', $group_id = '', $groupblog_blog_id = NULL ) {
= 1.9.3 =