Changeset 3286
- Timestamp:
- 06/01/2011 01:37:23 AM (15 years ago)
- Location:
- branches/plugin/bbp-admin
- Files:
-
- 3 edited
-
bbp-forums.php (modified) (1 diff)
-
bbp-replies.php (modified) (2 diffs)
-
bbp-topics.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-forums.php
r3243 r3286 232 232 return $forum_id; 233 233 234 // Bail if not a post request 235 if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 236 return $forum_id; 237 234 238 // Bail if current user cannot edit this forum 235 239 if ( !current_user_can( 'edit_forum', $forum_id ) ) -
branches/plugin/bbp-admin/bbp-replies.php
r3274 r3286 227 227 return $reply_id; 228 228 229 // Bail if not a post request 230 if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 231 return $reply_id; 232 229 233 // Current user cannot edit this reply 230 234 if ( !current_user_can( 'edit_reply', $reply_id ) ) … … 298 302 // Bail if no post_id 299 303 if ( empty( $post_id ) ) 304 return $post_id; 305 306 // Bail if not a post request 307 if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 300 308 return $post_id; 301 309 -
branches/plugin/bbp-admin/bbp-topics.php
r3260 r3286 255 255 return $topic_id; 256 256 257 // Bail if not a post request 258 if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 259 return $topic_id; 260 257 261 // Bail if current user cannot edit this topic 258 262 if ( !current_user_can( 'edit_topic', $topic_id ) ) … … 328 332 // Bail if doing an autosave 329 333 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) 334 return $post_id; 335 336 // Bail if not a post request 337 if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) ) 330 338 return $post_id; 331 339
Note: See TracChangeset
for help on using the changeset viewer.