Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixes non-variable being passed by reference #667

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

mikeyarce
Copy link
Member

Description

Fixes #656

Currently there's a PHP Notice happening when you save screen option changes:
[07-Jun-2021 18:36:16 UTC] PHP Notice: Only variables should be passed by reference in wp-content/plugins/Edit-Flow/common/php/screen-options.php on line 169

Steps to Test

  1. Go to wp-admin/index.php?page=story-budget
  2. Click on Screen Options at the top
  3. Change the number of columns
  4. Refresh the page to make sure the setting was saved

@mikeyarce mikeyarce requested a review from htdat June 10, 2021 22:55
@mikeyarce
Copy link
Member Author

Looking at the test failures, it looks like the problem is:
Line indented incorrectly; expected at least 3 tabs, found 2

The problem happens because the whole file is indented incorrectly, but I don't think we should worry about that for this specific PR.

@htdat
Copy link
Member

htdat commented Jun 11, 2021

Tested and confirmed everything is OK.
🚢 !

Copy link
Member

@htdat htdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢!

(I noticed that I did not formally send this review so... I am doing that now).

@mikeyarce mikeyarce merged commit 25672a3 into master Jun 15, 2021
@mikeyarce mikeyarce deleted the fix/pass-variable-reference branch June 15, 2021 03:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Notice: Only variables should be passed by reference
2 participants