Make WordPress Core


Ignore:
Timestamp:
05/11/2006 11:05:45 PM (20 years ago)
Author:
ryan
Message:

Backport nonces and pluggable cookies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/options.php

    r3413 r3771  
    3030    $any_changed = 0;
    3131   
    32     check_admin_referer();
     32    check_admin_referer('update-options');
    3333
    3434    if (!$_POST['page_options']) {
     
    6969                // If home changed, write rewrite rules to new location.
    7070                $wp_rewrite->flush_rules();
    71                 // Get currently logged in user and password.
    72                 get_currentuserinfo();
    7371                // Clear cookies for old paths.
    7472                wp_clearcookie();
     
    9290  <h2><?php _e('All options'); ?></h2>
    9391  <form name="form" action="options.php" method="post">
     92  <?php wp_nonce_field('update-options') ?>
    9493  <input type="hidden" name="action" value="update" />
    9594  <table width="98%">
Note: See TracChangeset for help on using the changeset viewer.