PluginProbe
bbPress / 2.6.6
bbPress v2.6.6
trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.2 All 71 releases
← All changes | includes/core/cache.php +7 -5 trunk2.6.6 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 /**
4 - * bbPress Cache Helpers.
4 + * bbPress Cache Helpers
5 5 *
6 6 * Helper functions used to communicate with WordPress's various caches. Many
7 7 * of these functions are used to work around specific WordPress nuances. They
8 8 * are subject to changes, tweaking, and will need iteration as performance
@@ -32,14 +32,14 @@
32 32 */
33 33 class BBP_Skip_Children {
34 34
35 35 /**
36 - * @var int Post ID being updated.
36 + * @var int Post ID being updated
37 37 */
38 38 private $updating_post = 0;
39 39
40 40 /**
41 - * @var bool The original value of $_wp_suspend_cache_invalidation global.
41 + * @var bool The original value of $_wp_suspend_cache_invalidation global
42 42 */
43 43 private $original_cache_invalidation = false;
44 44
45 45 /** Methods ***************************************************************/
@@ -61,9 +61,10 @@
61 61 * prevents child post caches from being cleared.
62 62 *
63 63 * @since 2.1.0 bbPress (r4011)
64 64 *
65 - * @param int $post_id The post ID being updated.
65 + * @param int $post_id The post ID being updated
66 + * @return If invalid post data
66 67 */
67 68 public function pre_post_update( $post_id = 0 ) {
68 69
69 70 // Bail if post ID is not a bbPress post type
@@ -84,9 +85,10 @@
84 85 * is not the one that was just updated.
85 86 *
86 87 * @since 2.1.0 bbPress (r4011)
87 88 *
88 - * @param int $post_id The post ID of the cache being invalidated.
89 + * @param int $post_id The post ID of the cache being invalidated
90 + * @return If invalid post data
89 91 */
90 92 public function skip_related_posts( $post_id = 0 ) {
91 93
92 94 // Bail if this post is not the current bbPress post