Skip to content

Commit

Permalink
removed uses of deprecated wp_cache_reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
itthinx committed Feb 6, 2022
1 parent 87161d1 commit 478982a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* WordPress 6.0 compatible.
* Requires at least WordPress 5.6.
* Fixed a PHP Notice with WordPress 6 and updated our add_menu_page to use an integer for the plugin's menu position.
* Removed uses of the deprecated wp_cache_reset() function.

= 4.11.0 =
* WordPress 5.9 compatible.
Expand Down
4 changes: 0 additions & 4 deletions lib/core/wp-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ function affiliates_activate( $network_wide = false ) {
$blog_ids = affiliates_get_blogs();
foreach ( $blog_ids as $blog_id ) {
switch_to_blog( $blog_id );
wp_cache_reset();
affiliates_setup();
restore_current_blog();
}
Expand All @@ -242,7 +241,6 @@ function affiliates_wpmu_new_blog( $blog_id, $user_id ) {
if ( is_multisite() ) {
if ( affiliates_is_sitewide_plugin() ) {
switch_to_blog( $blog_id );
wp_cache_reset();
affiliates_setup();
restore_current_blog();
}
Expand All @@ -259,7 +257,6 @@ function affiliates_delete_blog( $blog_id, $drop = false ) {
if ( is_multisite() ) {
if ( affiliates_is_sitewide_plugin() ) {
switch_to_blog( $blog_id );
wp_cache_reset();
affiliates_cleanup( $drop );
restore_current_blog();
}
Expand Down Expand Up @@ -771,7 +768,6 @@ function affiliates_deactivate( $network_wide = false ) {
$blog_ids = affiliates_get_blogs();
foreach ( $blog_ids as $blog_id ) {
switch_to_blog( $blog_id );
wp_cache_reset();
affiliates_cleanup( true );
restore_current_blog();
}
Expand Down

0 comments on commit 478982a

Please sign in to comment.