Plugin Directory

Changeset 983215


Ignore:
Timestamp:
09/06/2014 07:31:31 PM (11 years ago)
Author:
jjeaton
Message:

deploy from git

Location:
bbpress-featured-replies/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bbpress-featured-replies/trunk/bbpress-featured-replies.php

    r892462 r983215  
    44 * Plugin URI: http://www.josheaton.org/wordpress-plugins/bbpress-featured-replies
    55 * 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.0
     6 * Version: 0.1.1
    77 * Author: Josh Eaton
    88 * Author URI: http://www.josheaton.org/
     
    234234    public function ajax() {
    235235
    236         if ( !isset( $_POST['do'] ) ) {
     236        if ( ! isset( $_POST['do'] ) ) {
    237237            die();
    238238        }
     
    246246            $reply_id = absint( $_POST['reply_id'] );
    247247
    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 ) ) {
    250255                die();
    251256            }
  • bbpress-featured-replies/trunk/readme.txt

    r892462 r983215  
    66Requires at least: 3.5 
    77Tested up to: 3.8.1 
    8 Stable tag: 0.1.0 
     8Stable tag: 0.1.1 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3131== Changelog ==
    3232
     33= 0.1.1 =
     34
     35* Fix issue with cap check for featuring replies from the front-end
     36
    3337= 0.1.0 =
    3438
Note: See TracChangeset for help on using the changeset viewer.