Skip to content

Conversation

@carloswph
Copy link
Contributor

@carloswph carloswph commented Apr 5, 2021

Prevents deprecation notice:
Deprecated: Required parameter $i follows optional parameter $args in /../vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php on line 34

Description

Motivation and Context

Fixes #{issue-number}.

Risk Level

Testing procedure

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Screenshots

Prevents deprecation notice: 
Deprecated: Required parameter $i follows optional parameter $args in /../vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php on line 34
@carloswph
Copy link
Contributor Author

Just got this deprecation notice, so I am checking the rest of the code for similar issues.

@carloswph carloswph changed the title Update CMB2_Type_Multi_Base.php [Deprecated] CMB2_Type_Multi_Base.php Apr 5, 2021
@tw2113
Copy link
Contributor

tw2113 commented Apr 5, 2021

Unsure how much backwards compatibility this may introduce, though at least for CMB2 core, all uses pass a counter for this method. Given that it's been a required value, I am assuming everyone is passing something.

So, I'm fine with that, but as always want any final concerns checked by @jtsternberg as well.

@carloswph carloswph changed the title [Deprecated] CMB2_Type_Multi_Base.php Bug Fix - CMB2_Type_Multi_Base.php Apr 6, 2021
…pes::_id, which is where this $i argument is used.
@jtsternberg jtsternberg merged commit c8b29a0 into CMB2:develop Apr 7, 2021
@jtsternberg
Copy link
Member

Thanks!

@davideprevosto
Copy link

Is there any chance to release this fix in the next future?
Thank you

@tw2113
Copy link
Contributor

tw2113 commented Feb 15, 2022

Since it got merged, I believe it will be part of the next release. Just a question of when the release will happen, at this point.

@jtsternberg
Copy link
Member

Just pushed a release. 2.10.0 https://wordpress.org/plugins/cmb2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants