PluginProbe
bbPress / 2.6.19
bbPress v2.6.19
2.6.19 2.6.18 2.6.17 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 All 74 releases
← All changes | includes/core/theme-compat.php +21 -21 2.6.18 → 2.6.19 View file →
@@ -29,9 +29,9 @@
29 29 *
30 30 * This is only intended to be extended, and is included here as a basic guide
31 31 * for future Template Packs to use. @link bbp_setup_theme_compat()
32 32 *
33 - * @since 2.0.0 bbPress (r3506)
33 + * @since 2.0.0 bbPress (r3507)
34 34 */
35 35 class BBP_Theme_Compat {
36 36
37 37 /**
@@ -50,9 +50,9 @@
50 50
51 51 /**
52 52 * Pass the $properties to the object on creation.
53 53 *
54 - * @since 2.1.0 bbPress (r3926)
54 + * @since 2.1.0 bbPress (r3927)
55 55 *
56 56 * @param array $properties
57 57 */
58 58 public function __construct( array $properties = array() ) {
@@ -61,9 +61,9 @@
61 61
62 62 /**
63 63 * Set a theme's property.
64 64 *
65 - * @since 2.1.0 bbPress (r3926)
65 + * @since 2.1.0 bbPress (r3927)
66 66 *
67 67 * @param string $property
68 68 * @param mixed $value
69 69 * @return mixed
@@ -74,9 +74,9 @@
74 74
75 75 /**
76 76 * Get a theme's property.
77 77 *
78 - * @since 2.1.0 bbPress (r3926)
78 + * @since 2.1.0 bbPress (r3927)
79 79 *
80 80 * @param string $property
81 81 * @param mixed $value
82 82 * @return mixed
@@ -89,9 +89,9 @@
89 89
90 90 /**
91 91 * Return the template directory.
92 92 *
93 - * @since 2.6.0 bbPress (r6548)
93 + * @since 2.6.0 bbPress (r6551)
94 94 *
95 95 * @return string
96 96 */
97 97 public function get_dir() {
@@ -103,9 +103,9 @@
103 103
104 104 /**
105 105 * Setup the active template pack and register it's directory in the stack.
106 106 *
107 - * @since 2.0.0 bbPress (r3311)
107 + * @since 2.0.0 bbPress (r3028)
108 108 *
109 109 * @param BBP_Theme_Compat $theme
110 110 */
111 111 function bbp_setup_theme_compat( $theme = 'default' ) {
@@ -132,9 +132,9 @@
132 132
133 133 /**
134 134 * Get the current template pack package.
135 135 *
136 - * @since 2.6.0 bbPress (r6548)
136 + * @since 2.6.0 bbPress (r6551)
137 137 *
138 138 * @return BBP_Theme_Compat
139 139 */
140 140 function bbp_get_current_template_pack() {
@@ -154,9 +154,9 @@
154 154 * currently active WordPress theme does not explicitly support bbPress.
155 155 * This can be filtered or set manually. Tricky theme authors can override the
156 156 * default and include their own bbPress compatibility layers for their themes.
157 157 *
158 - * @since 2.0.0 bbPress (r3506)
158 + * @since 2.1.0 bbPress (r3830)
159 159 *
160 160 * @return string
161 161 */
162 162 function bbp_get_theme_compat_id() {
@@ -170,9 +170,9 @@
170 170 * currently active WordPress theme does not explicitly support bbPress.
171 171 * This can be filtered or set manually. Tricky theme authors can override the
172 172 * default and include their own bbPress compatibility layers for their themes.
173 173 *
174 - * @since 2.0.0 bbPress (r3506)
174 + * @since 2.0.0 bbPress (r3507)
175 175 *
176 176 * @return string
177 177 */
178 178 function bbp_get_theme_compat_name() {
@@ -186,9 +186,9 @@
186 186 * currently active WordPress theme does not explicitly support bbPress.
187 187 * This can be filtered or set manually. Tricky theme authors can override the
188 188 * default and include their own bbPress compatibility layers for their themes.
189 189 *
190 - * @since 2.0.0 bbPress (r3506)
190 + * @since 2.0.0 bbPress (r3507)
191 191 *
192 192 * @return string
193 193 */
194 194 function bbp_get_theme_compat_version() {
@@ -202,9 +202,9 @@
202 202 * WordPress theme does not explicitly support bbPress. This can be filtered,
203 203 * or set manually. Tricky theme authors can override the default and include
204 204 * their own bbPress compatibility layers for their themes.
205 205 *
206 - * @since 2.0.0 bbPress (r3032)
206 + * @since 2.0.0 bbPress (r3311)
207 207 *
208 208 * @return string
209 209 */
210 210 function bbp_get_theme_compat_dir() {
@@ -218,9 +218,9 @@
218 218 * WordPress theme does not explicitly support bbPress. This can be filtered,
219 219 * or set manually. Tricky theme authors can override the default and include
220 220 * their own bbPress compatibility layers for their themes.
221 221 *
222 - * @since 2.0.0 bbPress (r3032)
222 + * @since 2.0.0 bbPress (r3311)
223 223 *
224 224 * @return string
225 225 */
226 226 function bbp_get_theme_compat_url() {
@@ -231,9 +231,9 @@
231 231
232 232 /**
233 233 * Gets true/false if page is currently inside theme compatibility
234 234 *
235 - * @since 2.0.0 bbPress (r3265)
235 + * @since 2.0.0 bbPress (r3311)
236 236 *
237 237 * @return bool
238 238 */
239 239 function bbp_is_theme_compat_active() {
@@ -248,9 +248,9 @@
248 248
249 249 /**
250 250 * Sets true/false if page is currently inside theme compatibility
251 251 *
252 - * @since 2.0.0 bbPress (r3265)
252 + * @since 2.0.0 bbPress (r3311)
253 253 *
254 254 * @param bool $set
255 255 * @return bool
256 256 */
@@ -293,9 +293,9 @@
293 293 *
294 294 * Stash the original template file for the current query. Useful for checking
295 295 * if bbPress was able to find a more appropriate template.
296 296 *
297 - * @since 2.1.0 bbPress (r3926)
297 + * @since 2.1.0 bbPress (r3927)
298 298 */
299 299 function bbp_set_theme_compat_original_template( $template = '' ) {
300 300 bbpress()->theme_compat->original_template = $template;
301 301
@@ -307,9 +307,9 @@
307 307 *
308 308 * Stash the original template file for the current query. Useful for checking
309 309 * if bbPress was able to find a more appropriate template.
310 310 *
311 - * @since 2.1.0 bbPress (r3926)
311 + * @since 2.1.0 bbPress (r3927)
312 312 */
313 313 function bbp_is_theme_compat_original_template( $template = '' ) {
314 314 $bbp = bbpress();
315 315
@@ -323,9 +323,9 @@
323 323
324 324 /**
325 325 * Register a new bbPress theme package to the active theme packages array
326 326 *
327 - * @since 2.1.0 bbPress (r3829)
327 + * @since 2.1.0 bbPress (r3830)
328 328 *
329 329 * @param array $theme
330 330 */
331 331 function bbp_register_theme_package( $theme = array(), $override = true ) {
@@ -477,10 +477,10 @@
477 477 /**
478 478 * Reset main query vars and filter 'the_content' to output a bbPress
479 479 * template part as needed.
480 480 *
481 - * @since 2.0.0 bbPress (r3032)
482 - * @since 2.6.17 bbPress Added support for Block Themes
481 + * @since 2.0.0 bbPress (r3311)
482 + * @since 2.6.17 bbPress (r7425) Added support for Block Themes
483 483 *
484 484 * @param string $template
485 485 */
486 486 function bbp_template_include_theme_compat( $template = '' ) {
@@ -887,9 +887,9 @@
887 887
888 888 /**
889 889 * Remove the canonical redirect to allow pretty pagination
890 890 *
891 - * @since 2.0.0 bbPress (r2628)
891 + * @since 2.0.0 bbPress (r2634)
892 892 *
893 893 * @param string $redirect_url Redirect url
894 894 *
895 895 * @return bool|string False if it's a topic/forum and their first page,
@@ -1080,9 +1080,9 @@
1080 1080 *
1081 1081 * In this function, we remove these links when on a bbPress page. This also
1082 1082 * prevents additional, unnecessary queries from running.
1083 1083 *
1084 - * @since 2.6.0 bbPress (r7071)
1084 + * @since 2.6.5 bbPress (r7073)
1085 1085 */
1086 1086 function bbp_remove_adjacent_posts() {
1087 1087
1088 1088 // Bail if not a bbPress page