Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type casting for msls_id in render_option call #396

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

MiguelRoot
Copy link
Contributor

What does this PR do?

This PR fixes a TypeError in the MslsMetaBox::render_option() method, where $msls_id was being passed as a string instead of an integer. This issue is present in WordPress version 6.5.5.

Changes made:

  • Cast $msls_id to int before passing it to render_option().

chrome_5eJqrOdLoS

@lloc lloc merged commit 1341c1e into lloc:master Oct 22, 2024
1 of 2 checks passed
@lloc
Copy link
Owner

lloc commented Oct 22, 2024

On what version of PHP runs this?

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.

2 participants