WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/03/2013 09:11:40 PM (8 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r23554 r23594  
    584584    }
    585585
    586     $hash = stripslashes( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
     586    $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
    587587
    588588    return ! $wp_hasher->CheckPassword( $post->post_password, $hash );
Note: See TracChangeset for help on using the changeset viewer.