PluginProbe
Polylang / 2.8
Polylang v2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | include/filters.php +0 -14 2.9.22.8 View file →
@@ -23,13 +23,8 @@
23 23 $this->model = &$polylang->model;
24 24 $this->options = &$polylang->options;
25 25 $this->curlang = &$polylang->curlang;
26 26
27 - // Deletes our cache for sticky posts when the list is updated.
28 - add_action( 'update_option_sticky_posts', array( $this, 'delete_sticky_posts_cache' ) );
29 - add_action( 'add_option_sticky_posts', array( $this, 'delete_sticky_posts_cache' ) );
30 - add_action( 'delete_option_sticky_posts', array( $this, 'delete_sticky_posts_cache' ) );
31 -
32 27 // Filters the comments according to the current language
33 28 add_action( 'parse_comment_query', array( $this, 'parse_comment_query' ) );
34 29 add_filter( 'comments_clauses', array( $this, 'comments_clauses' ), 10, 2 );
35 30
@@ -57,17 +52,8 @@
57 52 add_filter( 'map_meta_cap', array( $this, 'fix_privacy_policy_page_editing' ), 10, 4 );
58 53
59 54 // Personal data exporter
60 55 add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'register_personal_data_exporter' ), 0 ); // Since WP 4.9.6
61 - }
62 -
63 - /**
64 - * Deletes the cache for multilingual sticky posts.
65 - *
66 - * @since 2.8.4
67 - */
68 - public function delete_sticky_posts_cache() {
69 - wp_cache_delete( 'sticky_posts', 'options' );
70 56 }
71 57
72 58 /**
73 59 * Get the language to filter a comments query