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.php

    r37985 r38006  
    6767        exit;
    6868    } elseif ( ! empty( $_GET['dismiss'] ) && 'new_admin_email' == $_GET['dismiss'] ) {
     69        check_admin_referer( 'dismiss-' . get_current_blog_id() . '-new_admin_email' );
    6970        delete_option( 'adminhash' );
    7071        delete_option( 'new_admin_email' );
Note: See TracChangeset for help on using the changeset viewer.