Changeset 983215
- Timestamp:
- 09/06/2014 07:31:31 PM (11 years ago)
- Location:
- bbpress-featured-replies/trunk
- Files:
-
- 2 edited
-
bbpress-featured-replies.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbpress-featured-replies/trunk/bbpress-featured-replies.php
r892462 r983215 4 4 * Plugin URI: http://www.josheaton.org/wordpress-plugins/bbpress-featured-replies 5 5 * Description: Lets the admin add "featured" or "buried" css class to selected bbPress replies. Handy to highlight replies that add value to the topic. Also includes a Featured Replies widget. 6 * Version: 0.1. 06 * Version: 0.1.1 7 7 * Author: Josh Eaton 8 8 * Author URI: http://www.josheaton.org/ … … 234 234 public function ajax() { 235 235 236 if ( ! isset( $_POST['do'] ) ) {236 if ( ! isset( $_POST['do'] ) ) { 237 237 die(); 238 238 } … … 246 246 $reply_id = absint( $_POST['reply_id'] ); 247 247 248 // Verify reply exists and whether user has the capability to moderate it 249 if ( ! $reply = bbp_get_reply( $reply_id ) || ! current_user_can( 'feature_replies', $reply_id ) ) { 248 // Verify reply exists 249 if ( ! $reply = bbp_get_reply( $reply_id ) ) { 250 die(); 251 } 252 253 // Verify whether user has the capability to moderate it 254 if ( ! current_user_can( 'feature_replies', $reply_id ) ) { 250 255 die(); 251 256 } -
bbpress-featured-replies/trunk/readme.txt
r892462 r983215 6 6 Requires at least: 3.5 7 7 Tested up to: 3.8.1 8 Stable tag: 0.1. 08 Stable tag: 0.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 == Changelog == 32 32 33 = 0.1.1 = 34 35 * Fix issue with cap check for featuring replies from the front-end 36 33 37 = 0.1.0 = 34 38
Note: See TracChangeset
for help on using the changeset viewer.