PluginProbe
bbPress / 2.6.17
bbPress v2.6.17
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 2.2 2.2.1 All 72 releases
← All changes | includes/common/rest.php +7 -7 trunk2.6.17 View file →
@@ -12,9 +12,9 @@
12 12
13 13 /**
14 14 * REST API controller for bbPress post types.
15 15 *
16 - * @since 2.7.0
16 + * @since 2.6.17
17 17 */
18 18 class BBP_REST_Posts_Controller extends WP_REST_Posts_Controller {
19 19
20 20 /**
@@ -19,9 +19,9 @@
19 19
20 20 /**
21 21 * Checks if a post can be updated.
22 22 *
23 - * @since 2.7.0
23 + * @since 2.6.17
24 24 *
25 25 * @param WP_REST_Request $request Full details about the request.
26 26 * @return true|WP_Error True if the request has access to update the item, WP_Error object otherwise.
27 27 */
@@ -76,9 +76,9 @@
76 76 *
77 77 * bbPress posts may be attachment parents even when their own REST routes
78 78 * are disabled.
79 79 *
80 - * @since 2.7.0
80 + * @since 2.6.17
81 81 *
82 82 * @param WP_Post_Type|string $post_type Post type object or name.
83 83 * @return bool Whether the post type is allowed.
84 84 */
@@ -98,9 +98,9 @@
98 98
99 99 /**
100 100 * Checks if a post can be read.
101 101 *
102 - * @since 2.7.0
102 + * @since 2.6.17
103 103 *
104 104 * @param WP_Post $post Post object.
105 105 * @return bool Whether the post can be read.
106 106 */
@@ -151,9 +151,9 @@
151 151
152 152 /**
153 153 * REST API controller for attachments to bbPress post types.
154 154 *
155 - * @since 2.7.0
155 + * @since 2.6.17
156 156 */
157 157 class BBP_REST_Attachments_Controller extends WP_REST_Attachments_Controller {
158 158
159 159 /**
@@ -158,9 +158,9 @@
158 158
159 159 /**
160 160 * Checks if an attachment can be read.
161 161 *
162 - * @since 2.7.0
162 + * @since 2.6.17
163 163 *
164 164 * @param WP_Post $post Attachment post object.
165 165 * @return bool Whether the attachment can be read.
166 166 */
@@ -188,9 +188,9 @@
188 188
189 189 /**
190 190 * Use the bbPress controller for attachments when Core's is unchanged.
191 191 *
192 - * @since 2.7.0
192 + * @since 2.6.17
193 193 */
194 194 function bbp_register_rest_attachment_controller() {
195 195 $post_type = get_post_type_object( 'attachment' );
196 196