Nonce Time Cut in Half
-
We use your plugin for a client site where they rely heavily on it. We recently began receiving reports about preview links expiring early. My own testing has shown links to be expiring at 24 hours, rather than 48, despite remaining set at 48 hours.
Looking at the code, does this not cut the nonce_life in half? So 48/2=24.
private static function nonce_tick() {
$nonce_life = apply_filters( ‘ppp_nonce_life’, 60 * 60 * 48 ); // 48 hoursreturn ceil( time() / ( $nonce_life / 2 ) );
}Can that be changed/fixed at your end so we’re not editing a plugin that would be overwritten by an update?
We have tried using the filter you provide in the FAQ, but are running into issues with our host over the syntax (unexpected return, they say). I know there is a Configurator plugin, but it hasn’t been updated in two years. Do you know if it still works with recent versions of WP?
- The topic ‘Nonce Time Cut in Half’ is closed to new replies.