Automattic / WPCOM-Legacy-Redirector

WordPress plugin for handling large volumes of legacy redirects in a scalable manner.
20 stars 16 forks source link

Remove the deprecated wpcom_vip_get_page_by_path function #134

Closed BrookeDot closed 2 months ago

BrookeDot commented 2 months ago

WordPress 6.1 added caching to get_page_by_path. As such we have deprecated the VIP specific use of the wpcom_vip_get_page_by_path helper function:

This plugin calls the function here: https://github.com/Automattic/WPCOM-Legacy-Redirector/blob/eeb5536f7bed699f9ce61e2db8bac9eff973376a/includes/class-wpcom-legacy-redirector.php#L364-L366

GaryJones commented 2 months ago

WordPress 6.1 added caching to get_page_by_path

No it didn't - it got reverted: https://core.trac.wordpress.org/ticket/56689#comment:19

Other than a differently named cache group, and a couple of coding standards changes, there's no difference between the get_page_by_path() for WP 6.0.9, and get_page_by_path() for WP 6.6.2.

The function that did change in WP 6.1 was get_page_by_title() (by title, not path).

GaryJones commented 2 months ago

Re-opening after some untangling.