Changeset 6444
- Timestamp:
- 05/29/2017 08:43:46 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6442 r6444 167 167 168 168 /** 169 * Check the date against the _bbp_edit_lock setting.169 * Check a date against the length of time something can be edited. 170 170 * 171 171 * @since 2.0.0 bbPress (r3133) … … 179 179 * @uses apply_filters() Allow output to be manipulated 180 180 * 181 * @return bool 181 * @return bool True if date is past, False if not 182 182 */ 183 183 function bbp_past_edit_lock( $post_date_gmt = '' ) { 184 184 185 // Assume editing is allowed185 // Default value 186 186 $retval = false; 187 187 … … 190 190 191 191 // Get number of minutes to allow editing for 192 $minutes = get_option( '_bbp_edit_lock', '5');192 $minutes = (int) get_option( '_bbp_edit_lock', 5 ); 193 193 194 194 // "0" minutes set, so allow forever 195 if ( 0 === (int)$minutes ) {195 if ( 0 === $minutes ) { 196 196 $retval = true; 197 197
Note: See TracChangeset
for help on using the changeset viewer.