Skip to:
Content

Ignore:
Timestamp:
04/19/2017 08:58:52 PM (2 years ago)
Author:
johnjamesjacoby
Message:

Anonymous: Improve $anonymous_data implementation:

  • Always treat it as an array, handling for false values was never used
  • Introduce _sanitize_ and _update_ partner functions for the existing _filter_ function
  • Ensure that cookies and meta-data values are stripped of invalid characters in the same way that anonymous comments are, to prevent inconsistencies between anonymous forum and commenter cookie data
  • Update surrounding documentation blocks
  • Prefer strict type-casting and is_array() comparisons
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r6398 r6400  
    425425        }
    426426
    427         // Current user cannot edit this reply
     427        // Bail if current user cannot edit this reply
    428428        if ( ! current_user_can( 'edit_reply', $reply_id ) ) {
    429429            return $reply_id;
Note: See TracChangeset for help on using the changeset viewer.