Make WordPress Core


Ignore:
Timestamp:
09/19/2022 09:34:52 PM (21 months ago)
Author:
audrasjb
Message:

General: Pass $action to nonce_life filter.

This changeset contextualizes the usage of nonce_life filter by passing the $action parameter. It allows to alterate the default lifespan of nonces on a case by case basis.

Props giuseppemazzapica, dwainm, DrewAPicture, jorbin, audrasjb, SergeyBiryukov, costdev, antonvlasenko.
Fixes #35188.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r53767 r54218  
    202202                'notify'     => '',
    203203            ),
    204             'wp_nonce_tick'                   => array(),
     204            'wp_nonce_tick'                   => array( 'action' => -1 ),
    205205            'wp_verify_nonce'                 => array(
    206206                'nonce',
Note: See TracChangeset for help on using the changeset viewer.