Skip to:
Content

bbPress.org

Changeset 3176


Ignore:
Timestamp:
05/21/2011 07:18:26 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix incorrect variable check on reply post_content when editing a reply

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-template.php

    r3149 r3176  
    17361736
    17371737        // Get _POST data
    1738         if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['bbp_reply_content'] ) )
     1738        if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['bbp_reply_content'] ) )
    17391739            $reply_content = $_POST['bbp_reply_content'];
    17401740
    17411741        // Get edit data
    1742         elseif ( !empty( $post->post_title ) && bbp_is_reply_edit() )
     1742        elseif ( !empty( $post->post_content ) && bbp_is_reply_edit() )
    17431743            $reply_content = $post->post_content;
    17441744
Note: See TracChangeset for help on using the changeset viewer.