fix call to undefined function wp_create_nonce