-
Notifications
You must be signed in to change notification settings - Fork 198
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 deprecation notices on PHP 8.2 #7650
Conversation
Test the previous changes of this PR with WordPress Playground. |
0366ef2
to
389c765
Compare
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
ob_start(); | ||
Sensei()->setup_wizard->render_wizard_page(); | ||
ob_end_clean(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevents an annoying output when running the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Special thanks for this one 😅
} | ||
|
||
/** | ||
* Enqueue the global block assets, except when the user is on the admin page. | ||
*/ | ||
public function testEnqueueBlockAssets_WhenCalledOnAdmin_NotEnqueueCourseListFilter() { | ||
/* Arrange */ | ||
|
||
$this->markTestSkipped( 'This test requires WordPress 5.8 or higher.' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was waiting for a minimum supported WP version higher than 5.8, which we now have.
Significance: patch | ||
Type: fixed | ||
|
||
Deprecation notice on the reports screen when using PHP 8.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having one changelog for the deprecation notices might be better because there are so many.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No deprecation warnings encountered 👍
includes/rest-api/class-sensei-rest-api-course-progress-controller.php
Outdated
Show resolved
Hide resolved
includes/rest-api/class-sensei-rest-api-course-students-controller.php
Outdated
Show resolved
Hide resolved
Test the previous changes of this PR with WordPress Playground. |
Resolves #7633, #7634, #7635
Proposed Changes
Testing Instructions
define( 'WP_DEBUG_DISPLAY', true );
anddefine( 'WP_DEBUG_LOG', true );
in wp-config.php.debug.log
file and make sure there are no errors related to sensei-pro. Note that there could be some related to Sensei core which will be addressed in another PR.Pre-Merge Checklist