We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
On https://central.wordcamp.org/reports/wordcamp-status-report/ a PHP Notice is being triggered:
E_NOTICE Undefined index: File wp-content/plugins/wordcamp-reports/views/html/wordcamp-status.php:41
This is caused by $active_camp containing this data:
$active_camp
array (size=4) 'name' => string 'WordCamp ......' (length=28) 'logs' => array (size=1) 1 => array (size=3) 'timestamp' => int .......... 'user_id' => int ......... 'message' => string 'Needs Vetting → 已拒絕' (length=30) 'latest_log' => array (size=3) 'timestamp' => int ........... 'user_id' => int ........... 'message' => string 'Needs Vetting → 已拒絕' (length=30) 'latest_status' => string '' (length=0)
'latest_status' is empty, as the new status is extracted from the log text, expecting that it's only in English.
'latest_status'
wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-base-status.php
Lines 77 to 121 in d151fcd
When logging, the post status should use the english non-translated text, or, it should log the IDs in the metadata for it.
This is more than just a PHP Notice; this means that others have to translate the logs to see what changed.
To reproduce
Steps to reproduce the behavior:
Expected behavior
English logs.
WordCamp
https://central.wordcamp.org/wp-admin/post.php?post=5701004&action=edit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
On https://central.wordcamp.org/reports/wordcamp-status-report/ a PHP Notice is being triggered:
This is caused by
$active_camp
containing this data:'latest_status'
is empty, as the new status is extracted from the log text, expecting that it's only in English.wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-base-status.php
Lines 77 to 121 in d151fcd
When logging, the post status should use the english non-translated text, or, it should log the IDs in the metadata for it.
This is more than just a PHP Notice; this means that others have to translate the logs to see what changed.
To reproduce
Steps to reproduce the behavior:
Expected behavior
English logs.
WordCamp
https://central.wordcamp.org/wp-admin/post.php?post=5701004&action=edit
The text was updated successfully, but these errors were encountered: