WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/07/2016 05:12:54 PM (4 years ago)
Author:
jeremyfelt
Message:

Multisite: Add a nonce to the "Cancel" URL when changing a site's admin email.

Props scottbasgaard.
Fixes #36954.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r37985 r38006  
    113113    printf(
    114114        ' <a href="%1$s">%2$s</a>',
    115         esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ),
     115        esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ),
    116116        __( 'Cancel' )
    117117    );
Note: See TracChangeset for help on using the changeset viewer.