Make WordPress Core

Changeset 43349


Ignore:
Timestamp:
06/16/2018 09:32:43 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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

Props skoldin, subrataemfluence, ianbelanger, johnbillion.
Merges [43317] and [43318] to the 4.9 branch.
Fixes #44089.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/pluggable.php

    r41704 r43349  
    968968    setcookie( USER_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
    969969    setcookie( PASS_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
     970
     971    // Post password cookie
     972    setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
    970973}
    971974endif;
Note: See TracChangeset for help on using the changeset viewer.