Make WordPress Core

Ticket #59384: 59384.patch

File 59384.patch, 503 bytes (added by bor0, 22 months ago)
  • src/wp-includes/pluggable.php

     
    23732373         * @param string|int $action Scalar value to add context to the nonce.
    23742374         * @return string The token.
    23752375         */
    2376         function wp_create_nonce( $action = -1 ) {
     2376        function wp_create_nonce( $action ) {
    23772377                $user = wp_get_current_user();
    23782378                $uid  = (int) $user->ID;
    23792379                if ( ! $uid ) {