cachify icon indicating copy to clipboard operation
cachify copied to clipboard

Update deprecated WPMS hooks

Open ouun opened this issue 4 years ago • 2 comments

delete_blog & wpmu_new_blog are deprecated since WP 5.1. This PR follows up.

References: https://developer.wordpress.org/reference/hooks/wpmu_new_blog/ https://developer.wordpress.org/reference/hooks/delete_blog/

ouun avatar Nov 16 '21 17:11 ouun

Another decision that should at least be discussed briefly:

wp_initialize_site and wp_delete_site have both been introduced in 5.1 - Cachify currently declares compatibility with 4.4+

So we either drop support for WP <5.1 or add both hooks, maybe conditionally.

stklcode avatar Nov 16 '21 18:11 stklcode

So we either drop support for WP <5.1 or add both hooks, maybe conditionally.

I would vote for adding both and checking for the WordPress version.

florianbrinkmann avatar Jan 07 '22 12:01 florianbrinkmann