Skip to:
Content

bbPress.org

Changeset 6920


Ignore:
Timestamp:
11/06/2019 05:54:19 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Edit Locking: Remove redundant $minutes check in bbp_past_edit_lock().

This commit is just a small bit of cleanup from researching #3164.

See #3222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6919 r6920  
    237237            $diff_time = ( $lock_time - $past_time ) - $duration;
    238238
    239             // 0 minutes set, so allow editing forever
    240             if ( 0 === $minutes ) {
    241                 $retval = false;
    242 
    243239            // Check if less than lock time
    244             } elseif ( $diff_time < $duration ) {
     240            if ( $diff_time < $duration ) {
    245241                $retval = false;
    246242            }
Note: See TracChangeset for help on using the changeset viewer.