| @@ -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 | |