Make WordPress Core

Changeset 43318


Ignore:
Timestamp:
05/27/2018 01:32:20 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Use COOKIEPATH when clearing post password cookie, as that's the path it's created with.

See #44089.

File:
1 edited

Legend:

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

    r43317 r43318  
    979979
    980980        // Post password cookie
    981         setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
     981        setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
    982982    }
    983983endif;
Note: See TracChangeset for help on using the changeset viewer.