Make WordPress Core

Ticket #21466: 21466.patch

File 21466.patch, 582 bytes (added by Viper007Bond, 12 years ago)
  • wp-login.php

     
    390390        }
    391391
    392392        // 10 days
    393         setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 864000, COOKIEPATH );
     393        setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + apply_filters( 'post_password_expiry_length', 864000 ), COOKIEPATH );
    394394
    395395        wp_safe_redirect( wp_get_referer() );
    396396        exit();