-
Notifications
You must be signed in to change notification settings - Fork 806
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
General: remove deprecated core get_page_by_title #29460
Conversation
Let's use direct WP queries instead, as recommended: https://make.wordpress.org/core/2023/03/06/get_page_by_title-deprecated/
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run
to get started. More details: p9dueE-5Nn-p2 |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
Debug Helper plugin:
|
This looks good. I'm going through the testing instructions right now. Waiting for Protect to come back to me. One question. Do we have a preference on WP_Query over |
I suppose
Same thing for me. That may be a better question for @nateweller ; in my testing I sticked to checking that the Scan test post could be added and removed when toggling the option. |
I end up with seven identified threats, but it does not include the database threat. The scan tester post is added correctly, but we aren't detecting it as a threat. The scan team will have to look into this further (tasked: 1201069996155224-as-1204188299254038). Thanks for tagging! One potential thing to check - have you previously ignored these threats? Can check here: https://cloud.jetpack.com/scan/history/example.com/ignored The changes in this PR that affect the scan debug helper LGTM |
…eprecated-get-page-by-title
Proposed changes:
See #27795
Let's use direct WP queries instead, as recommended:
https://make.wordpress.org/core/2023/03/06/get_page_by_title-deprecated/
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
The changes in Jetpack's
functions.global.php
are not really used anymore. We could probably get rid of all that logic at this point; the code exists to facilitate the migration from our own widget (jetpack/projects/plugins/jetpack/modules/widgets/image-widget.php
Line 25 in 3104e37
The change to the Debug Helper like so;
/wp-admin/admin.php?page=jetpack-debug-tools
/wp-admin/admin.php?page=scan-helper