WordPress.org

Make WordPress Core

Changeset 43317


Ignore:
Timestamp:
05/26/2018 12:42:57 PM (3 hours ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Clear post password cookie when logging out.

Props skoldin, subrataemfluence, ianbelanger, johnbillion.
Fixes #44089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r42843 r43317  
    977977        setcookie( USER_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
    978978        setcookie( PASS_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
     979
     980        // Post password cookie
     981        setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
    979982    }
    980983endif;
Note: See TracChangeset for help on using the changeset viewer.